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

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

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