public virtual ActionResult GeneralLedger(long Id, string FromDate, string ToDate) { return(ThrowIfNotLoggedIn(() => TryExecute(() => { DateTime fromDate = DateTime.ParseExact(FromDate, "dd/MM/yyyy", CultureInfo.InvariantCulture); DateTime toDate = DateTime.ParseExact(ToDate, "dd/MM/yyyy", CultureInfo.InvariantCulture); var accounts = _reportsService.GetAllAccountHead(WebUser.TenantId); var generalLedger = _reportsService.GetAllGeneralLedgers(WebUser.TenantId, Id, fromDate, toDate); var vm = new { Accounts = accounts, GeneralLedgers = generalLedger }; return vm; }))); }