コード例 #1
0
 public IActionResult Get()
 {
     try
     {
         var departamentos = departamentoService.GetAll();
         return(Ok(departamentos));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
コード例 #2
0
        public IActionResult GetDepartamentos()
        {
            try
            {
                return(Ok(depaService.GetAll()));
            }
            catch (Exception ex)
            {
                AltivaLog.Log.Insertar(ex.ToString(), "Error");
                return(BadRequest());

                throw;
            }
        }
コード例 #3
0
 public ActionResult Get()
 {
     return(Ok(
                _DepartamentoService.GetAll()
                ));
 }