Beispiel #1
0
 public void AddLinkStatus(ApiLinkStatusResponseModel item)
 {
     if (!this.LinkStatuses.Any(x => x.Id == item.Id))
     {
         this.LinkStatuses.Add(item);
     }
 }
Beispiel #2
0
        public virtual ApiLinkStatusRequestModel MapResponseToRequest(
            ApiLinkStatusResponseModel response)
        {
            var request = new ApiLinkStatusRequestModel();

            request.SetProperties(
                response.Name);
            return(request);
        }
Beispiel #3
0
        public virtual ApiLinkStatusResponseModel MapRequestToResponse(
            int id,
            ApiLinkStatusRequestModel request)
        {
            var response = new ApiLinkStatusResponseModel();

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