public static Entities.Category MapCategory(Logic.Objects.Base_Objects.Logging.Category logicCategory) { Entities.Category contextCategory = new Entities.Category() { CategoryId = logicCategory.categoryID, CategoryName = logicCategory.categoryName, CategoryDescription = logicCategory.categoryDescription }; return(contextCategory); }
public static Logic.Objects.Base_Objects.Logging.Category MapCategory(Entities.Category contextCategory) { Logic.Objects.Base_Objects.Logging.Category logicCategory = new Logic.Objects.Base_Objects.Logging.Category() { categoryID = contextCategory.CategoryId, categoryName = contextCategory.CategoryName, categoryDescription = contextCategory.CategoryDescription }; return(logicCategory); }