Esempio n. 1
0
 public void AddHandler(ApiHandlerClientResponseModel item)
 {
     if (!this.Handlers.Any(x => x.Id == item.Id))
     {
         this.Handlers.Add(item);
     }
 }
Esempio n. 2
0
        public virtual ApiHandlerClientRequestModel MapClientResponseToRequest(
            ApiHandlerClientResponseModel response)
        {
            var request = new ApiHandlerClientRequestModel();

            request.SetProperties(
                response.CountryId,
                response.Email,
                response.FirstName,
                response.LastName,
                response.Phone);
            return(request);
        }
Esempio n. 3
0
        public virtual ApiHandlerClientResponseModel MapClientRequestToResponse(
            int id,
            ApiHandlerClientRequestModel request)
        {
            var response = new ApiHandlerClientResponseModel();

            response.SetProperties(id,
                                   request.CountryId,
                                   request.Email,
                                   request.FirstName,
                                   request.LastName,
                                   request.Phone);
            return(response);
        }
 public void SetHandlerIdNavigation(ApiHandlerClientResponseModel value)
 {
     this.HandlerIdNavigation = value;
 }