public void SaveAccessories() { if (!EditMode) { _accessoriesService.InsertAccessories(ExtraFittings); } else { _accessoriesService.UpdateAccessories(ExtraFittings); } }
public IActionResult AccessoriesUpdatePost([FromBody] IEnumerable <ExtraFittingsAccessories> referrer) { if (referrer == null) { return(BadRequest()); } var identifier = _accessoriesService.UpdateAccessories(referrer); return(Ok()); }