Esempio n. 1
0
        public virtual ApiVideoServerResponseModel MapServerRequestToResponse(
            int id,
            ApiVideoServerRequestModel request)
        {
            var response = new ApiVideoServerResponseModel();

            response.SetProperties(id,
                                   request.Description,
                                   request.Title,
                                   request.Url);
            return(response);
        }
Esempio n. 2
0
        public virtual ApiVideoServerResponseModel MapEntityToModel(
            Video item)
        {
            var model = new ApiVideoServerResponseModel();

            model.SetProperties(item.Id,
                                item.Description,
                                item.Title,
                                item.Url);

            return(model);
        }