コード例 #1
0
ファイル: HomeController.cs プロジェクト: Deman0590/Kapitan
 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");
 }
コード例 #2
0
ファイル: HomeController.cs プロジェクト: Deman0590/Kapitan
 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");
 }
コード例 #3
0
ファイル: HomeController.cs プロジェクト: Deman0590/Kapitan
 public ActionResult DellDocType(DocumentTypesViewModel model)
 {
     dataManager.DocumentTypes.DeleteDocumentType(model.Id);
     return RedirectToAction("DocTypes", "Home");
 }