Métodos usados con frecuencia
Métodos usados con frecuencia
Métodos usados con frecuencia
Métodos usados con frecuencia
public ActionResult ChangeStock([FromRoute] Guid id, [FromBody] ChangeStockCommand command) { // Check id in URL and id in command match if (id != command.Id) { return(BadRequest("Id in command doesn't match id on URL")); } var result = _StockService.ChangeStock(id, command.ChangeDate, command.AsxCode, command.Name, command.Category.ToDomain()); return(result.ToActionResult()); }