예제 #1
0
        public ActionResult edit(Student obj)
        {
            obj.CompanyID        = this.Company.ToLower();
            obj.ModificationDate = Utility.GetCurrentDateInt();
            obj.ModificationTime = Utility.GetCurrentTimeInt();
            obj.ModifiedBy       = LoggedUserID;

            if (!"*****@*****.**".Equals(obj.Email, StringComparison.OrdinalIgnoreCase))
            {
                obj.Roles = "Student";
            }
            _db.EditStudent(obj);
            return(Json(true, JsonRequestBehavior.AllowGet));
        }