자주 사용되는 메소드들
자주 사용되는 메소드들
자주 사용되는 메소드들
자주 사용되는 메소드들
public async Task <IActionResult> DeleteGrupo(int?id) { if (id.HasValue) { Grupo grupo = await grupoDAO.GetById(id); await grupoDAO.Remove(grupo); return(RedirectToAction("Index")); } HttpContext.Response.StatusCode = 400; return(RedirectToAction("Index")); }