Esempio n. 1
0
 public void Delete(LoginUser model)
 {
     if (model != null)
     {
         _db.Entry(model).State = EntityState.Deleted;
     }
     else
     {
         throw new NullReferenceException("LoginUserModel Is Null");
     }
 }
Esempio n. 2
0
        public void Delete(Business model)
        {
            if (model == null)
            {
                throw new ArgumentNullException();
            }

            _db.Entry(model).State = EntityState.Deleted;
        }