Beispiel #1
0
        public async Task <IActionResult> DeleteAttribute(int ProductId, int FeatureAttributesId)
        {
            if (ProductId == null && FeatureAttributesId == null)
            {
                return(NotFound());
            }
            if (User.IsInRole(Roles.Client) || !User.Identity.IsAuthenticated)
            {
                return(NotFound());
            }

            var viewModel = await _productAttributeService.Get(ProductId, FeatureAttributesId);

            return(View(viewModel));
        }
 public async Task <IActionResult> GetAll([FromRoute] Int64 productId)
 {
     return(Ok(await _productAttributeService.Get(productId)));
 }