Exemple #1
0
        public async Task <IActionResult> GetById([FromRoute] int id)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            var tblLob = await _CompaniesService.GetByID(id);

            if (tblLob == null)
            {
                return(NotFound());
            }

            return(Ok(tblLob));
        }