자주 사용되는 메소드들
자주 사용되는 메소드들
자주 사용되는 메소드들
자주 사용되는 메소드들
public IActionResult DeleteUnit(int id) { var unitToDelete = unitsService.GetById(id); if (unitToDelete == null) { return(NotFound()); } unitsService.Delete(id); return(NoContent()); }