Esempio n. 1
0
        public ActionResult Delete(DriverDTO driver)
        {
            var dao = new DriverDAO();
            var PudoEliminarElregistro = dao.Delete(driver);

            if (PudoEliminarElregistro)
            {
                return(Ok());
            }
            else
            {
                return(BadRequest("todo mal"));
            }
        }
 public bool deleteDriver(int driver)
 {
     return(driverDAO.Delete(driver));
 }