public IActionResult UpdateSettings([FromBody] UserProfileSettingsEntity data) { var result = this.UnitOfWork.UserProfileRepository.UpdateSettings(data); this.UnitOfWork.Commit(); return(this.JsonResponse(result)); }
public UserProfileSettingsEntity UpdateSettings(UserProfileSettingsEntity data) { var entity = this.Get(data.UserProfileId); entity.Settings.Enabled = data.Enabled; return(entity.Settings); }