Esempio n. 1
0
        public virtual ApiAirlineServerResponseModel MapEntityToModel(
            Airline item)
        {
            var model = new ApiAirlineServerResponseModel();

            model.SetProperties(item.Id,
                                item.Name);

            return(model);
        }
Esempio n. 2
0
        public virtual ApiAirlineServerResponseModel MapServerRequestToResponse(
            int id,
            ApiAirlineServerRequestModel request)
        {
            var response = new ApiAirlineServerResponseModel();

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