Пример #1
0
 public void AddTeam(ApiTeamResponseModel item)
 {
     if (!this.Teams.Any(x => x.Id == item.Id))
     {
         this.Teams.Add(item);
     }
 }
        public virtual ApiTeamRequestModel MapResponseToRequest(
            ApiTeamResponseModel response)
        {
            var request = new ApiTeamRequestModel();

            request.SetProperties(
                response.Name,
                response.OrganizationId);
            return(request);
        }
        public virtual ApiTeamResponseModel MapRequestToResponse(
            int id,
            ApiTeamRequestModel request)
        {
            var response = new ApiTeamResponseModel();

            response.SetProperties(id,
                                   request.Name,
                                   request.OrganizationId);
            return(response);
        }