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

            model.SetProperties(item.Id,
                                item.Address1,
                                item.Address2,
                                item.City,
                                item.Name,
                                item.Province,
                                item.Website,
                                item.Zip);

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

            response.SetProperties(id,
                                   request.Address1,
                                   request.Address2,
                                   request.City,
                                   request.Name,
                                   request.Province,
                                   request.Website,
                                   request.Zip);
            return(response);
        }