public int UpdateEmergencyContactDetails(UsersEmergencyContactViewModel usersEmergencyContactModel) { int isEmergencyContactUpdated = 0; try { isEmergencyContactUpdated = _context.usp_UsersEmergencyContact_Update( usersEmergencyContactModel.Id, usersEmergencyContactModel.UserID, usersEmergencyContactModel.Name, usersEmergencyContactModel.Relationship, usersEmergencyContactModel.Mobile, usersEmergencyContactModel.WorkMobile, usersEmergencyContactModel.Notes, usersEmergencyContactModel.UpdatedBy); } catch (Exception ex) { throw ex; } return(isEmergencyContactUpdated); }