Ejemplo n.º 1
0
 public ActionResult AddDocType(DocumentTypesViewModel model)
 {
     dataManager.DocumentTypes.CreateDocumentType(model.Name, model.OnBoard, model.OrgID, model.VehicleTypeID, model.Alarm1, model.Alarm2, model.Download, model.CreateUser, DateTime.Now, model.UpdateUser, model.UpdateDate);
     return RedirectToAction("DocTypes", "Home");
 }
Ejemplo n.º 2
0
 public ActionResult EditDocType(DocumentTypesViewModel model)
 {
     documentTypes docType = new documentTypes
     {
         id = model.Id,
         name = model.Name,
         onBoard = model.OnBoard,
         orgID = model.OrgID,
         vehicleTypeID = model.VehicleTypeID,
         alarm1 = model.Alarm1,
         alarm2 = model.Alarm2,
         download = model.Download,
         createUser = model.CreateUser,
         createDate = model.CreateDate,
         updateUser = model.UpdateUser,
         updateDate = DateTime.Now
     };
     dataManager.DocumentTypes.SaveDocumentType(docType);
     return RedirectToAction("DocTypes", "Home");
 }
Ejemplo n.º 3
0
 public ActionResult DellDocType(DocumentTypesViewModel model)
 {
     dataManager.DocumentTypes.DeleteDocumentType(model.Id);
     return RedirectToAction("DocTypes", "Home");
 }