Example #1
0
        public IActionResult Put(MatchDependencyDTO dto)
        {
            var input = _mapper.FromDTO(dto);

            var result = _matchDependencyService.Update(input);

            return(Ok(_mapper.ToDTO(result)));
        }
Example #2
0
        public MatchDependency FromDTO(MatchDependencyDTO dto)
        {
            var matchDependency = new MatchDependency()
            {
                Id            = dto.Id,
                DependencyId  = dto.DependencyId,
                DependsOnDraw = dto.DependsOnDraw,
                Position      = dto.Position
            };

            return(matchDependency);
        }
Example #3
0
        public MatchDependencyDTO ToDTO(MatchDependency matchDependency)
        {
            var dto = new MatchDependencyDTO()
            {
                Id            = matchDependency.Id,
                DependencyId  = matchDependency.DependencyId,
                DependsOnDraw = matchDependency.DependsOnDraw,
                Position      = matchDependency.Position
            };

            return(dto);
        }