public async Task <IActionResult> ConfirmDeleteFromRcother_list(int?id) { if (id != null) { RCOther find_part = await PartsContext.RCOthers.FirstOrDefaultAsync(p => p.Id == id); return(DeleteView(find_part, "Rcother_list")); } return(NotFound()); }
public async Task <IActionResult> DeleteRcother_list(int?id) { if (id != null) { RCOther find_part = new RCOther { Id = id.Value }; await DeletePart(find_part); return(RedirectToAction("Index")); } return(NotFound()); }