public ActionResult <CashAccountTransactionsResponse> GetCashAccount([FromServices] ICashAccountService service, [FromQuery] DateTime?fromDate, [FromQuery] DateTime?toDate) { var dateRange = DateRangeFromParameter(fromDate, toDate); var result = service.GetTransactions(dateRange); return(result.ToActionResult()); }
public CashAccountCollection(ICashAccountService cashAccountService, ILogService logService) : base(logService) { CashAccountService = cashAccountService; }
public CashAccountListViewModel(ICashAccountService cashAccountService, ICommonServices commonServices, CashAccountViewModel cashAccountViewModel) : base(commonServices) { CashAccountService = cashAccountService; CashAccountViewModel = cashAccountViewModel; }