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

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