public void SaveAccessories()
 {
     if (!EditMode)
     {
         _accessoriesService.InsertAccessories(ExtraFittings);
     }
     else
     {
         _accessoriesService.UpdateAccessories(ExtraFittings);
     }
 }
예제 #2
0
        public IActionResult AccessoriesUpdatePost([FromBody] IEnumerable <ExtraFittingsAccessories> referrer)
        {
            if (referrer == null)
            {
                return(BadRequest());
            }


            var identifier = _accessoriesService.UpdateAccessories(referrer);


            return(Ok());
        }