Exemplo n.º 1
0
        internal object Delete(int id, string userId)
        {
            var exists = _repo.GetKeepDeleteById(id, userId);

            if (exists == null)
            {
                throw new Exception("Invalid Id");
            }
            _repo.Delete(id, userId);
            return("Successfully Deleted");
        }