Ejemplo n.º 1
0
        public static async Task <string> DeleteDriver(int id)
        {
            var driverService = new DriverService();
            var response      = await driverService.DeleteDriver(id);

            return(response.ToString());
        }
Ejemplo n.º 2
0
        public async Task <bool> DeleteDriver(int DriverId, int CompanyId, string UserId)
        {
            IDriverService DriverInfo = new DriverService(CompanyId);

            return(await DriverInfo.DeleteDriver(DriverId, CompanyId, UserId));
        }
Ejemplo n.º 3
0
 public OperationResult DeleteDriver(long driverId)
 {
     return(driverService.DeleteDriver(driverId));
 }
Ejemplo n.º 4
0
 public ActionResult ConfirmDelete(string Id)
 {
     _driverService.DeleteDriver(Id);
     return(RedirectToAction("Index"));
 }