예제 #1
0
 public async Task <IHttpActionResult> CreateAsync([FromUri] DeveloperApiModel model)
 {
     try {
         _developerService.Create(_mapper.Map <DeveloperDto>(model));
         return(Ok());
     } catch (Exception ex) {
         return(BadRequest(ex.Message));
     }
 }
        public async Task <ServiceResult> UpdateAsync(DeveloperApiModel model)
        {
            var response = await _apiService.DoRequestAsync("POST", UrlHelper.UpdateDeveloper, model);

            return(ServiceResult.State(response));
        }