示例#1
0
        public async Task <ActionResult <StoreResponse> > UpdateStore(int id, [FromBody] PostStoresRequest model)
        {
            Guid accountId = new Guid(User.FindFirst(ClaimTypes.NameIdentifier)?.Value);
            var  rs        = await _storesService.PutStore(id, accountId, model);

            if (rs == null)
            {
                return(NotFound());
            }
            return(Ok(rs));
        }