コード例 #1
0
ファイル: ShopController.cs プロジェクト: ChrisSure/Phone911
        public async Task <IActionResult> AddSellerToShop([FromBody] AddSellerToShopDto addsellerToShopDto)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            var itemModel = dtoMapper.Map <AddSellerToShopDto, ShopSeller>(addsellerToShopDto);
            await shopService.AddSellerToShop(itemModel);

            return(Ok("Seller has added to shop"));
        }