コード例 #1
0
        public override async Task <ActionResult> HandleAsync([FromBody] UpdateClosetRequest request, CancellationToken cancellationToken = default)
        {
            var Closet = new Closet
            {
                Id          = request.Id,
                RoomId      = request.RoomId,
                CarpetId    = request.CarpetId,
                BuildingId  = request.BuildingId,
                CarpetPrice = request.CarpetPrice,
                Length      = request.Length,
                Width       = request.Width
            };

            _repo.UpdateCloset(Closet);
            await _repo.SaveAsync();

            return(Ok(Closet));
        }