Ejemplo n.º 1
0
        public Boolean Post([FromBody] ShopOwner shopowner)
        {
            if (_ShopOwnerDataProvider.RegisterShopOwner(shopowner))
            {
                return(true);
            }

            return(false);
        }
        public IActionResult Post([FromBody] ShopOwner shopowner)
        {
            result = _ShopOwnerDataProvider.RegisterShopOwner(shopowner);
            if (result == null)
            {
                return(new BadRequestResult());
            }


            String Token = BuildToken(result);

            return(new OkObjectResult(new { token = Token }));
        }