public async Task <IEnumerable <DepositDto> > GetDeposits([FromBody] DepositDto model) { IEnumerable <DepositDto> resultList; resultList = await _npRepo.GetDeposits(model.Date_Open.ToString("dd.MM.yyyy")); //var objDto = new List<DepositDto>(); //foreach (var obj in objList) //{ // objDto.Add(_mapper.Map<DepositDto>(obj)); //} return(resultList); }
public async Task <IList <DepositDto> > GetDeposits([FromBody] DepositDto model) { var location = GetControllerActionNames(); IList <DepositDto> resultData = null; try { resultData = await _npRepo.GetDeposits(model.Date_Open.ToString("dd.MM.yyyy")); } catch (Exception e) { _logger.LogWarn($"{location}: {e.Message} - {e.InnerException}"); } return(resultData); }