Exemplo n.º 1
0
        public IActionResult Delete(int id)
        {
            var todelete = _repository.Get(id);

            if (todelete != null)
            {
                _repository.Delete(todelete);
                return(Helper.CheckResult(todelete, true));
            }
            return(NotFound());
        }
Exemplo n.º 2
0
 public string Delete(int id)
 {
     _roleTypeRepository.Delete(_roleTypeRepository.Get(id));
     return("Deleted successfully!");
 }
Exemplo n.º 3
0
 public void Delete(RoleType entity)
 {
     repository.Delete(entity);
     unitOfWork.Commit();
 }