Beispiel #1
0
 public ActionResult Delete(Guid id)
 {
     _iFlowService.Delete(id);
     _unitOfWork.Commit();
     return(RedirectToAction("Index"));
 }
        public IActionResult Delete(Guid id)
        {
            bool succeeded = _service.Delete(id);

            return(succeeded ? NoContent() : BadRequest());
        }
Beispiel #3
0
        public async Task <IActionResult> Delete(Guid id)
        {
            await _flowService.Delete(id);

            return(NoContent());
        }