Example #1
0
        public async Task <ApiResponse> GetDivisionByName(string name)
        {
            var division = await _divisionRepo.FindDivisionByName(name);

            if (division == null)
            {
                return(new ApiResponse(404));
            }
            var divisionTransferDTOs = _mapper.Map <DivisionTransferDTO>(division);

            return(new ApiOkResponse(divisionTransferDTOs));
        }