Ejemplo n.º 1
0
        public async Task <ActionResult> Delete(object id)
        {
            _iDepartmentService.Delete(id);
            await _unitOfWork.CommitAsync();

            return(new DeleteSuccessResult());
        }
        public async Task <IActionResult> DeleteAsync(string[] id)
        {
            _iSysDepartmentService.Delete(a => id.Contains(a.Id));
            var result = await _unitOfWork.CommitAsync();

            return(new DeleteSuccessResult(result));
        }
Ejemplo n.º 3
0
 public ActionResult Delete(Guid id)
 {
     _sysDepartmentService.Delete(id);
     _unitOfWork.Commit();
     return(RedirectToAction("Index"));
 }
 public IActionResult Delete(string id)
 {
     return(Ok(_service.Delete(id)));
 }