public async Task <RecordDetailResponseModel> GetExpenditureById(int expenditureId) { var expenditure = await _expenditureRepository.GetById(expenditureId); if (expenditure == null) { return(null); } RecordDetailResponseModel response = new RecordDetailResponseModel { Id = expenditure.Id, UserId = expenditure.UserId, Amount = expenditure.Amount, Description = expenditure.Description, Date = expenditure.ExpDate, Remarks = expenditure.Remarks, }; return(response); }