public async Task <IActionResult> DeleteConfirmed(Guid id) { if (ResponseHasErrors(await _ordemServicoAppService.Remove(id))) { return(View(await _ordemServicoAppService.GetById(id))); } ViewBag.Sucesso = "Ordem de Serviços removida"; return(RedirectToAction("Index")); }
public async Task <IActionResult> Delete(Guid id) { return(CustomResponse(await _ordemServicoAppService.Remove(id))); }