public IActionResult Add([FromBody] SupplierViewModel model) { var result = supplier.Add(model); return(Created("", result)); }
public IActionResult Add([FromBody] SupplierViewModel model) { var result = _supplier.Add(model); return(Ok(result)); }