Beispiel #1
0
 public void AddVoteType(ApiVoteTypeClientResponseModel item)
 {
     if (!this.VoteTypes.Any(x => x.Id == item.Id))
     {
         this.VoteTypes.Add(item);
     }
 }
Beispiel #2
0
        public virtual ApiVoteTypeClientRequestModel MapClientResponseToRequest(
            ApiVoteTypeClientResponseModel response)
        {
            var request = new ApiVoteTypeClientRequestModel();

            request.SetProperties(
                response.Name);
            return(request);
        }
Beispiel #3
0
        public virtual ApiVoteTypeClientResponseModel MapClientRequestToResponse(
            int id,
            ApiVoteTypeClientRequestModel request)
        {
            var response = new ApiVoteTypeClientResponseModel();

            response.SetProperties(id,
                                   request.Name);
            return(response);
        }
 public void SetVoteTypeIdNavigation(ApiVoteTypeClientResponseModel value)
 {
     this.VoteTypeIdNavigation = value;
 }