Esempio n. 1
0
 public void AddLinkStatus(ApiLinkStatusClientResponseModel item)
 {
     if (!this.LinkStatus.Any(x => x.Id == item.Id))
     {
         this.LinkStatus.Add(item);
     }
 }
Esempio n. 2
0
        public virtual ApiLinkStatusClientRequestModel MapClientResponseToRequest(
            ApiLinkStatusClientResponseModel response)
        {
            var request = new ApiLinkStatusClientRequestModel();

            request.SetProperties(
                response.Name);
            return(request);
        }
Esempio n. 3
0
        public virtual ApiLinkStatusClientResponseModel MapClientRequestToResponse(
            int id,
            ApiLinkStatusClientRequestModel request)
        {
            var response = new ApiLinkStatusClientResponseModel();

            response.SetProperties(id,
                                   request.Name);
            return(response);
        }
Esempio n. 4
0
 public void SetLinkStatusIdNavigation(ApiLinkStatusClientResponseModel value)
 {
     this.LinkStatusIdNavigation = value;
 }