예제 #1
0
        public static Category ResourceToEntity(this CategoryResource category)
        {
            Category c = new Category
            {
                Id          = category.Id,
                Description = category.Description,
            };

            return(c);
        }
예제 #2
0
        public static CategoryResource EntityToResource(this Category category)
        {
            CategoryResource c = new CategoryResource
            {
                Id          = category.Id,
                Description = category.Description,
            };

            return(c);
        }