public HttpResponseMessage Update3(UserOnboardUpdate3 model, int id)
        {
            if (!ModelState.IsValid)
            {
                return(Request.CreateErrorResponse(HttpStatusCode.BadRequest, ModelState));
            }
            SucessResponse response = new SucessResponse();

            UserOnboardService.Update3(model);
            return(Request.CreateResponse(response));
        }
Пример #2
0
 public static void Update3(UserOnboardUpdate3 model)
 {
     DataProvider.ExecuteNonQuery(GetConnection, "dbo.Users_Onboard_Update3",
                                  inputParamMapper : delegate(SqlParameterCollection u)
     {
         u.AddWithValue("@Id", model.Id);
         u.AddWithValue("@AddressId", model.AddressId);
         u.AddWithValue("@StreetAddress1", model.StreetAddress1);
         u.AddWithValue("@StreetAddress2", model.StreetAddress2);
         u.AddWithValue("@City", model.City);
         u.AddWithValue("@StateProvinceId", model.StateProvinceId);
         u.AddWithValue("@ZipCode", model.ZipCode);
     });
 }