예제 #1
0
 public ActionResult add(Batch obj)
 {
     obj.ID               = Guid.NewGuid().ToString().ToLower();
     obj.CompanyID        = this.Company.ToLower();
     obj.CreatedBy        = LoggedUserID;
     obj.CreationDate     = Utility.GetCurrentDateInt();
     obj.CreationTime     = Utility.GetCurrentTimeInt();
     obj.ModificationDate = Utility.GetCurrentDateInt();
     obj.ModificationTime = Utility.GetCurrentTimeInt();
     obj.ModifiedBy       = LoggedUserID;
     _db.AddBatch(obj);
     return(RedirectToAction("index"));
 }