public async Task <IActionResult> GetDefect(int id) { var defect = await _repo.GetByIdAsync(id); return(defect != null? Ok(_mapper.Map <DefectViewModel>(defect)) : NotFound($"Defect with id of {id} was not found")); }
public async Task <IActionResult> GetDefect(int id) { var defect = await _repo.GetByIdAsync(id); return(defect != null? Ok(_mapper.Map <DefectViewModel>(defect)) : NotFound($"Defect with id of {id} was not found")); }