Ejemplo n.º 1
0
 public ActionResult add(Student 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;
     obj.Roles            = "Student";
     _db.AddStudent(obj);
     return(Json(true, JsonRequestBehavior.AllowGet));
 }