public void AddCategory(workout_categories obj)
 {
     try
     {
         WorktrackerEntities db = new WorktrackerEntities();
         db.workout_categories.Add(obj);
         db.SaveChanges();
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
 public void EditCategory(workout_categories item)
 {
     try
     {
         WorktrackerEntities db = new WorktrackerEntities();
         var query = (from obj in db.workout_categories
                      where obj.category_id == obj.category_id
                      select obj).First();
         query.category_name = item.category_name;
         db.SaveChanges();
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }