Files
Backend-Api/CompanyManagment.App.Contracts/Loan/ILoanApplication.cs
2026-02-03 13:44:47 +03:30

27 lines
974 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 PagedResult<LoanViewModel> LoanListViewModel { get; set; }
}