Riddhi Valecha

Riddhi Valecha

  • 591
  • 2.9k
  • 267.4k

Entity Framework - Validations

Mar 26 2020 2:21 AM
Dear Team,
 
I need help in validations in Entity Framework with Swagger.
 
 
For Example - If I do not put any values for inputs - Locationcode, drivercode, isactive and isapproved, then it should return all the records. But, here , it takes LocationCode input as "string"  and searches the data where locationcode is "string". How do I overcome this ?
--------
For Saving data, I need to make all the inputs compulsory.
 
 
Here, how do I make all the inputs compulsory ? and give user-friendly messages that - LocationCode is compulsory?
 
Please guide on this ..

Brought to you by:

Answers (38)