public HttpResponseMessage UpdatePerson(ProfileDataPersonUpdateRequest model)
 {
     try
     {
         _profileDataService.UpdatePerson(model);
         SuccessResponse resp = new SuccessResponse();
         log.Info("ProfileData Update Person Success");
         return(Request.CreateResponse(HttpStatusCode.OK, resp));
     }
     catch (Exception ex)
     {
         log.Error("ProfileData Update Person Error", ex);
         return(Request.CreateErrorResponse(HttpStatusCode.BadRequest, ex));
     }
 }
        public int UpdatePerson(ProfileDataPersonUpdateRequest model)
        {
            int Id = 0;

            _dataProvider.ExecuteNonQuery(
                "ProfileDataPerson_Update",
                inputParamMapper : delegate(SqlParameterCollection paramList)
            {
                paramList.AddWithValue("@UserId", model.UserId);
                paramList.AddWithValue("@FirstName", model.FirstName);
                paramList.AddWithValue("@MiddleInitial", model.MiddleInitial);
                paramList.AddWithValue("@LastName", model.LastName);
                paramList.AddWithValue("@ModifiedBy", model.ModifiedBy);
                paramList.AddWithValue("@Gender", model.Gender);
            });
            return(Id);
        }