자주 사용되는 메소드들
자주 사용되는 메소드들
자주 사용되는 메소드들
자주 사용되는 메소드들
public async Task <IActionResult> DeleteCompra(long id) { try { var result = await service.DeleteCompra(id); return(CreatedAtAction("DeleteCompra", new { id = result.IdCompra }, result)); } catch (Exception e) { var err = e.Message; return(BadRequest(new { msg = err })); } }