Example #1
0
        internal string Delete(int id)
        {
            var qexists = _qreop.GetById(id);

            if (qexists == null)
            {
                throw new Exception("Invalid id");
            }
            _qreop.Delete(id);
            return("Successfully Deleted");
        }
Example #2
0
 public bool Delete(int id)
 {
     return(_repo.Delete(id));
 }