public JsonResult InsertRatingByStudent(StudentRateLesson Info) { ResultInfo <string> ResultInfo = new ResultInfo <string>() { Status = false, Description = "Failed|Login" }; try { if (Info != null) { SchoolStudent Obj = new SchoolStudent(); ResultInfo.Info = Obj.InsertRating(Info); if (ResultInfo.Info != null) { ResultInfo.Description = "Success| Updation Sucess"; ResultInfo.Status = true; } } } catch (Exception ex) { // throw; } return(Json(ResultInfo, JsonRequestBehavior.AllowGet)); }