Example #1
0
 public AgentVehicle Update(AgentVehicle agentvehicle)
 {
     agentvehicleRepository.Update(agentvehicle);
     return agentvehicle;
 }
Example #2
0
 public ActionResult DelAgentVehicle(AgentVehicle agentvehicle)
 {
     try
     {
         if (agentvehicle != null)
         {
             agentVehicleService.Remove(agentvehicle.Id);
             return Json(true);
         }
         return Json(false);
     }
     catch (Exception ex)
     {
         return Json(false);
     }
 }
Example #3
0
 public AgentVehicle Add(AgentVehicle agentvehicle)
 {
     agentvehicleRepository.Add(agentvehicle);
     return agentvehicle;
 }