public IActionResult UpdateSettings([FromBody] UserProfileSettingsEntity data)
        {
            var result = this.UnitOfWork.UserProfileRepository.UpdateSettings(data);

            this.UnitOfWork.Commit();
            return(this.JsonResponse(result));
        }
Exemplo n.º 2
0
        public UserProfileSettingsEntity UpdateSettings(UserProfileSettingsEntity data)
        {
            var entity = this.Get(data.UserProfileId);

            entity.Settings.Enabled = data.Enabled;
            return(entity.Settings);
        }