Exemple #1
0
 public void AddHandler(ApiHandlerResponseModel item)
 {
     if (!this.Handlers.Any(x => x.Id == item.Id))
     {
         this.Handlers.Add(item);
     }
 }
Exemple #2
0
        public virtual ApiHandlerRequestModel MapResponseToRequest(
            ApiHandlerResponseModel response)
        {
            var request = new ApiHandlerRequestModel();

            request.SetProperties(
                response.CountryId,
                response.Email,
                response.FirstName,
                response.LastName,
                response.Phone);
            return(request);
        }
Exemple #3
0
        public virtual ApiHandlerResponseModel MapRequestToResponse(
            int id,
            ApiHandlerRequestModel request)
        {
            var response = new ApiHandlerResponseModel();

            response.SetProperties(id,
                                   request.CountryId,
                                   request.Email,
                                   request.FirstName,
                                   request.LastName,
                                   request.Phone);
            return(response);
        }