public HttpResponseMessage PutReminder(int id, ReminderPutRequest request) { if (ModelState.IsValid) { ErrorLogService svc = new ErrorLogService(); ErrorLogAddRequest error = new ErrorLogAddRequest(); error.ErrorFunction = "Aic.Web.Controllers.Api.PutReminder"; error.ErrorMessage = ModelState.ToString(); error.UserId = UserService.UserSelect().PersonId; svc.ErrorLogInsert(error); return(Request.CreateResponse(HttpStatusCode.BadRequest)); } SuccessResponse response = new SuccessResponse(); RecruiterService.UpdateReminder(request); return(Request.CreateResponse(response)); }