예제 #1
0
 public WrapResponseResult <ResponseWrapper <BaseContactResponse> > Edit(EditContactRequest request)
 {
     return(new WrapResponseResult <ResponseWrapper <BaseContactResponse> >(() =>
     {
         if (request != null && ModelState.IsValid)
         {
             ResponseWrapper <BaseContactResponse> response = null;
             response = _contactService.Edit(request);
             return response;
         }
         else
         {
             ResponseWrapper <BaseContactResponse> response = null;
             response = ResponseWrapper <BaseContactResponse> .GetBadRequestErrorResponse();
             return response;
         }
     }, this.Request));
 }