// GET: Helper/Delete/5 public ActionResult Delete(int id) { try { _helperService.DeleteHelper(id); return(View()); } catch { return(View()); } }
public async Task <IActionResult> Delete(string Ids) { int Id; if (int.TryParse(Ids, out Id)) { await _service.DeleteHelper(Id); return(Ok()); } else { return(NotFound()); } }