예제 #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);
 }