public async Task <IActionResult> getById(int Id)
        {
            try{
                var data = await _svc.getById(Id);

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

            return(Ok(data));
        }