public HttpResponseMessage Update5(UserOnboardUpdate5 model, int id) { if (!ModelState.IsValid) { return(Request.CreateErrorResponse(HttpStatusCode.BadRequest, ModelState)); } SucessResponse response = new SucessResponse(); UserOnboardService.Update5(model); return(Request.CreateResponse(response)); }
public static void Update5(UserOnboardUpdate5 model) { DataProvider.ExecuteNonQuery(GetConnection, "dbo.Users_Onboard_Update5", inputParamMapper : delegate(SqlParameterCollection u) { u.AddWithValue("@Id", model.Id); u.AddWithValue("@EmploymentStatusId", model.EmploymentStatusId); u.AddWithValue("@LearningObjective", model.LearningObjective); u.AddWithValue("@TargetEmploymentLocation", model.TargetEmploymentLocation); u.AddWithValue("@Bio", model.Bio); u.AddWithValue("@ProgrammingExperience", model.ProgrammingExperience); u.AddWithValue("@WorkExperience", model.WorkExperience); }); }