private CategoryViewModel Convert(Models.Category c)
{
return new CategoryViewModel()
{
Id = c.CategoryId,
Name = c.Name,
CreatedDate = c.CreatedDate,
UpdatedDate = c.UpdatedDate,
Active = c.Active,
ParentCategoryId = (c.ParentCategoryId == 0) ? null : c.ParentCategoryId,
Description = c.Description
};
}