routing monthly setup api from /api/profile/setmonthlyemail

This commit is contained in:
2018-12-11 09:23:51 +00:00
parent 51753e40c1
commit e8fdeebb8f

View File

@ -19,7 +19,7 @@ namespace Yavsc.ApiControllers.accounting
_userManager = userManager;
}
[HttpGet("memail/{allow}")]
[HttpGet("{allow}",Name ="setmonthlyemail")]
public async Task<object> SetMonthlyEmail(bool allow)
{
var user = await _userManager.FindByIdAsync(User.GetUserId());