Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [Route("/customer")]
- public class CustomerRequest
- {
- public string Name { get; set; }
- public bool IsActive { get; set; }
- }
- public class CustomerService : Service
- {
- public object Any(CustomerRequest request)
- {
- if (request.Name == null)
- {
- throw new ArgumentException("Name is required");
- }
- // var objCustomer = //get customer from DB
- return null;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement