public void AddEasyPaisaDetail(EasyPaisaDetail easypaisadetail)
 {
     using (var dbcontext = new EntityContext())
     {
         dbcontext.EasyPaisaDetails.Add(easypaisadetail);
         dbcontext.SaveChanges();
     }
 }
        public void UpdateEasyPaisaDetail(int id, EasyPaisaDetail easypaisadetail)
        {
            using (var dbcontext = new EntityContext())
            {
                var found = (from a in dbcontext.EasyPaisaDetails
                             where a.Id == id
                             select a).FirstOrDefault();

                found.CategoryName = easypaisadetail.CategoryName;
                found.AccountName  = easypaisadetail.AccountName;
                found.MobileNumber = easypaisadetail.MobileNumber;
                found.NICNumber    = easypaisadetail.NICNumber;
                dbcontext.SaveChanges();
            }
        }