public ActionResult add(AttemptDetail obj) { obj.ID = Guid.NewGuid().ToString().ToLower(); obj.CreatedBy = LoggedUserID; obj.CreationDate = Utility.GetCurrentDateInt(); obj.CreationTime = Utility.GetCurrentTimeInt(); obj.ModificationDate = Utility.GetCurrentDateInt(); obj.ModificationTime = Utility.GetCurrentTimeInt(); obj.ModifiedBy = LoggedUserID; _db.AddAttemptDetail(obj); return(RedirectToAction("index")); }