Exemplo n.º 1
0
        public async Task <IActionResult> StoreRegister([FromBody] RegisterStoreRequest request)
        {
            Guid userId = new Guid(User.FindFirst("Id")?.Value);

            var createStore = await _service.CreateStore(userId, request);

            if (createStore is null)
            {
                return(BadRequest());
            }
            return(Ok());
        }