// GET: Diplome/Delete/5 public ActionResult Delete(int id) { var c = ResourcesService.GetById(id); ResourcesService.Delete(c); ResourcesService.Commit(); return(RedirectToAction("Index")); }
public async Task <IActionResult> Delete([FromRoute] int resourceId) { await resService.Delete(resourceId); return(Ok(new { DeletedTime = DateTime.Now })); }