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


            var identifier = _accessoriesService.InsertAccessories(referrer);


            return(Ok());
        }