public static void Delete(int id)
        {
            // Create an entity to represent the Entity you wish to delete
            // Notice you don't need to know all the properties, in this
            // case just the ID will do.
            AdjusterMaster adjuster = new AdjusterMaster { AdjusterId = id };

            // Now attach the category stub object to the "Categories" set.
            // This puts the Entity into the context in the unchanged state,
            // This is same state it would have had if you made the query
            DbContextHelper.DbContext.AttachTo("AdjusterMaster", adjuster);

            // Do the delete the category
            DbContextHelper.DbContext.DeleteObject(adjuster);

            // Apply the delete to the database
            DbContextHelper.DbContext.SaveChanges();
        }
        public static AdjusterMaster Save(AdjusterMaster objAdjuster)
        {
            if (objAdjuster.AdjusterId == 0) {
                //objProducer.InsertBy = Convert.ToInt32(HttpContext.Current.User.Identity.Name);
                objAdjuster.InsertDate = DateTime.Now;
                DbContextHelper.DbContext.Add(objAdjuster);
            }

            objAdjuster.UpdateDate = DateTime.Now;
            DbContextHelper.DbContext.SaveChanges();

            return objAdjuster;
        }