public ActionResult Creat(SubCatagorySolution subCatagorySolution)
 {
     if (ModelState.IsValid) {
     dbContext.SubCatagorySolutions.Add(subCatagorySolution);
     dbContext.SaveChanges();
     int index = 0;
     index = dbContext.SubCatagorySolutions.OrderBy(x => x.SubCatagorySolutionName).ToList().IndexOf(subCatagorySolution);
     return Json(index,JsonRequestBehavior.AllowGet);
     }
     return new HttpStatusCodeResult(400, "Custom Error Message 2");
 }
 public ActionResult UpdateSubCatagorySolution(SubCatagorySolution subCatagorySolution)
 {
     if (ModelState.IsValid)
     {
         dbContext.Entry(subCatagorySolution).State = EntityState.Modified;
         dbContext.SaveChanges();
         return null;
     }
     else
     {
         return new HttpStatusCodeResult(400, "Custom Error Message 2");
     }
 }