public IActionResult Get()
 {
     try
     {
         var departamentos = departamentoService.GetAll();
         return(Ok(departamentos));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
        public IActionResult GetDepartamentos()
        {
            try
            {
                return(Ok(depaService.GetAll()));
            }
            catch (Exception ex)
            {
                AltivaLog.Log.Insertar(ex.ToString(), "Error");
                return(BadRequest());

                throw;
            }
        }
 public ActionResult Get()
 {
     return(Ok(
                _DepartamentoService.GetAll()
                ));
 }