예제 #1
0
        public IHttpActionResult ObtenerChoferRuta(int Ruta)
        {
            try
            {
                var mng = new ChoferManager();
                apiResp.Data    = mng.RetrieveAllRuta(Ruta);
                apiResp.Message = "Choferes en el sistema";

                return(Ok(apiResp));
            }
            catch (BusinessException bex)
            {
                return(InternalServerError(new Exception(bex.ExceptionId + "-" + bex.AppMessage.Message)));
            }
        }