using System.Threading.Tasks;
using Abp.Authorization;
using Abp.Runtime.Session;
using MineTec.ProManager.Configuration.Dto;

namespace MineTec.ProManager.Configuration
{
    [AbpAuthorize]
    public class ConfigurationAppService : ProManagerAppServiceBase, IConfigurationAppService
    {
        public async Task ChangeUiTheme(ChangeUiThemeInput input)
        {
            await SettingManager.ChangeSettingForUserAsync(AbpSession.ToUserIdentifier(), AppSettingNames.UiTheme, input.Theme);
        }
    }
}
