示例#1
0
        public Brick Delete(int id)
        {
            Brick exists = Get(id);

            _repo.Delete(id);
            return(exists);
        }
示例#2
0
        internal Brick Delete(int id)
        {
            Brick brick = Get(id);

            _repo.Delete(brick);
            return(brick);
        }
示例#3
0
        internal String Delete(int id)
        {
            var found = _repo.GetById(id);

            if (found == null)
            {
                throw new Exception("Invalid Id");
            }
            _repo.Delete(id);
            return("Successfully Deleted");
        }
示例#4
0
 public object Delete(int id)
 {
     _repo.Delete(id);
     return("Successfully Booted");
 }
 internal string Delete(int id)
 {
     Get(id);
     _repo.Delete(id);
     return("Successfully Deleted");
 }
 public string Delete(int id)
 {
     _repo.Delete(id);
     return("Successfully Deleted");
 }