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

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

            return(c);
        }