Пример #1
0
        internal string Delete(int id)
        {
            var data = Get(id);

            _repo.Delete(id);
            return("Deleted Job");
        }
Пример #2
0
        public bool Delete(int id)
        {
            var data = FindById(id);

            _repo.Delete(id);
            return(true);
        }
Пример #3
0
        internal void Delete(int id, Profile userInfo)
        {
            var data = _repo.GetById(id);

            if (data.CreatorId != userInfo.Id)
            {
                throw new Exception("Invalid Permissions to Delete");
            }
            _repo.Delete(id);
        }
Пример #4
0
        internal void Delete(int id)
        {
            var data = _repo.GetById(id);

            if (data == null)
            {
                throw new Exception("Invalid Id");
            }
            _repo.Delete(id);
        }
Пример #5
0
 public string Delete(int id)
 {
     _repo.Delete(id);
     return("Succesfully Deleted");
 }
Пример #6
0
 internal string Delete(int id)
 {
     _repo.Delete(id);
     return("Successfully Deleted");
 }
Пример #7
0
 internal void Delete(int id)
 {
     _repo.Delete(id);
 }