public virtual ApiTableServerResponseModel MapServerRequestToResponse(
            int id,
            ApiTableServerRequestModel request)
        {
            var response = new ApiTableServerResponseModel();

            response.SetProperties(id,
                                   request.Name);
            return(response);
        }
Exemple #2
0
        public virtual ApiTableServerResponseModel MapEntityToModel(
            Table item)
        {
            var model = new ApiTableServerResponseModel();

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

            return(model);
        }