public void fvCareerCategory_InsertItem(CareerCategory category)
 {
     var item = new bmi.imis.MABanker.Careers.Models.CareerCategory();
         var context = new CareersContext();
         context.Categories.Add(category);
         context.SaveChanges();
         HttpContext.Current.Session["Categories"] = null;
 }
 // The id parameter name should match the DataKeyNames value set on the control
 public void gvCareerCategories_UpdateItem(CareerCategory category)
 {
     using (var context = new CareersContext())
     {
         context.Entry(category).State = System.Data.Entity.EntityState.Modified;
         context.SaveChanges();
         HttpContext.Current.Session["Categories"] = null;
     }
 }