Open Source Web Application Framework for ASP.NET Core
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

31 lines
955 B

using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Volo.Abp.AspNetCore.Mvc;
namespace Volo.Abp.SettingManagement
{
[RemoteService(Name = SettingManagementRemoteServiceConsts.RemoteServiceName)]
[Area("settingManagement")]
[Route("api/setting-management/emailing")]
public class EmailSettingsController : AbpController, IEmailSettingsAppService
{
private readonly IEmailSettingsAppService _emailSettingsAppService;
public EmailSettingsController(IEmailSettingsAppService emailSettingsAppService)
{
_emailSettingsAppService = emailSettingsAppService;
}
[HttpGet]
public Task<EmailSettingsDto> GetAsync()
{
return _emailSettingsAppService.GetAsync();
}
[HttpPost]
public Task UpdateAsync(UpdateEmailSettingsDto input)
{
return _emailSettingsAppService.UpdateAsync(input);
}
}
}