Beispiel #1
0
        public HttpResponseMessage ModifyOfficePracticeCase(OfficePracticeCasesUpdateRequest model)
        {
            if (!ModelState.IsValid)
            {
                return(Request.CreateErrorResponse(HttpStatusCode.BadRequest, ModelState));
            }

            SuccessResponse response = new SuccessResponse();

            OfficePracticeCasesService.ModifyOfficePracticeCase(model);
            return(Request.CreateResponse(response));
        }
 public static void ModifyOfficePracticeCase(OfficePracticeCasesUpdateRequest model)
 {
     DataProvider.ExecuteNonQuery(GetConnection, "dbo.OfficePracticeCases_Update",
                                  inputParamMapper : delegate(SqlParameterCollection UpdateOfficePracticeCase)
     {
         UpdateOfficePracticeCase.AddWithValue("@Id", model.Id);
         UpdateOfficePracticeCase.AddWithValue("@PatientID", model.PatientID);
         UpdateOfficePracticeCase.AddWithValue("@Age", model.Age);
         UpdateOfficePracticeCase.AddWithValue("@Gravity", model.Gravity);
         UpdateOfficePracticeCase.AddWithValue("@Parity", model.Parity);
         UpdateOfficePracticeCase.AddWithValue("@Visits", model.Visits);
         UpdateOfficePracticeCase.AddWithValue("@Problem", model.Problem);
         UpdateOfficePracticeCase.AddWithValue("@DiagnosticProc", model.DiagnosticProc);
         //UpdateOfficePracticeCase.AddWithValue("@ComplicationID", model.ComplicationID);
         UpdateOfficePracticeCase.AddWithValue("@Treatment", model.Treatment);
         UpdateOfficePracticeCase.AddWithValue("@Result", model.Result);
     });
 }