27 lines
967 B
C#
27 lines
967 B
C#
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<LoanViewModel> GetSearchList(LoanSearchViewModel searchViewModel);
|
|
Task<LoanDetailsViewModel> GetDetails(long id);
|
|
OperationResult Create(CreateLoanViewModel command);
|
|
List<LoanInstallmentViewModel> CalculateLoanInstallment(string amount , int installmentCount,string loanStartDate,bool getRounded);
|
|
OperationResult Remove(long id);
|
|
OperationResult RemoveRange(IEnumerable<long> ids);
|
|
|
|
LoanGroupedViewModel GetSearchListAsGrouped(LoanSearchViewModel searchModel);
|
|
}
|
|
|
|
public class LoanGroupedViewModel
|
|
{
|
|
public List<LoanGroupedByDateViewModel> GroupedByDate { get; set; }
|
|
public List<LoanGroupedByEmployeeViewModel>GroupedByEmployee { get; set; }
|
|
public List<LoanViewModel> LoanListViewModel { get; set; }
|
|
}
|
|
|