コード例 #1
0
        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));
        }
コード例 #2
0
 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);
     });
 }