using System.Collections.Generic; using System.Threading.Tasks; using _0_Framework.Application; using Microsoft.AspNetCore.Mvc.RazorPages; namespace CompanyManagment.App.Contracts.Loan; public interface ILoanApplication { List GetSearchList(LoanSearchViewModel searchViewModel); Task GetDetails(long id); OperationResult Create(CreateLoanViewModel command); List CalculateLoanInstallment(string amount , int installmentCount,string loanStartDate,bool getRounded); OperationResult Remove(long id); OperationResult RemoveRange(IEnumerable ids); LoanGroupedViewModel GetSearchListAsGrouped(LoanSearchViewModel searchModel); } public class LoanGroupedViewModel { public List GroupedByDate { get; set; } public ListGroupedByEmployee { get; set; } public PagedResult LoanListViewModel { get; set; } }