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

            _dataProvider.ExecuteNonQuery(
                "ProfileDataProfile_Update",
                inputParamMapper : delegate(SqlParameterCollection paramList)
            {
                paramList.AddWithValue("@UserId", model.UserId);
                paramList.AddWithValue("@Title", model.Title);
                paramList.AddWithValue("@Bio", model.Bio);
                paramList.AddWithValue("@ModifiedBy", model.ModifiedBy);
            });
            return(Id);
        }