public async Task <CommandResult <GetNewsResult> > GetNotifications([FromServices] GetNotificationsCommand _getNotificationsCommand, string siteId, int?index) { var result = await Business.InvokeAsync <GetNotificationsCommand, GetNewsInput, CommandResult <GetNewsResult> >( _getNotificationsCommand, new GetNewsInput { ModuleId = null, SiteId = siteId, FilterIndex = index }); return(result); }
public async Task <CommandResult <GetNewsResult> > GetNotifications([FromServices] GetNotificationsCommand getNotificationsCommand, string siteId) { return(await GetNotifications(getNotificationsCommand, siteId, null)); }