public IActionResult Put(MatchDependencyDTO dto) { var input = _mapper.FromDTO(dto); var result = _matchDependencyService.Update(input); return(Ok(_mapper.ToDTO(result))); }
public MatchDependency FromDTO(MatchDependencyDTO dto) { var matchDependency = new MatchDependency() { Id = dto.Id, DependencyId = dto.DependencyId, DependsOnDraw = dto.DependsOnDraw, Position = dto.Position }; return(matchDependency); }
public MatchDependencyDTO ToDTO(MatchDependency matchDependency) { var dto = new MatchDependencyDTO() { Id = matchDependency.Id, DependencyId = matchDependency.DependencyId, DependsOnDraw = matchDependency.DependsOnDraw, Position = matchDependency.Position }; return(dto); }