public async Task <IActionResult> getById(int Id) { try{ var data = await _svc.getById(Id); return(Ok(data)); }catch (ApplicationException aEx) { return(BadRequest(aEx.Message)); } }
public async Task <IActionResult> GetById(int Id) { var data = await _svc.getById(Id); return(Ok(data)); }