public void CreateDocumentType(string name, bool onBoard, int? orgId, int vechicleTypeId, int? alarm1, int? alarm2, bool download, string createUser, DateTime? createDate, string updateUser, DateTime? updateDate)
 {
     documentTypes docType = new documentTypes
     {
         name = name,
         onBoard = onBoard,
         orgID = orgId,
         vehicleTypeID = vechicleTypeId,
         alarm1 = alarm1,
         alarm2 = alarm2,
         download = download,
         createUser = createUser,
         createDate = createDate,
         updateUser = updateUser,
         updateDate = updateDate
     };
     SaveDocumentType(docType);
 }
Example #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");
 }