public IActionResult Delete(int id) { try { Covers item = new Covers { Id = id, //FUpdUserId = GetNameClaim(), UpdatedAt = DateTime.Now }; _itemService.Delete(item); return(Ok()); } catch (Exception ex) { // return error message if there was an exception return(DefaultError(ex.Message)); } }
public ActionResult RemoveCover(int id) { _coverServie.Delete(id); return(Json(true)); }