/// <summary>
        /// Add method.
        /// </summary>
        /// <param name="category"></param>
        /// <returns></returns>
        public Category Add(Category category)
        {
            var categoryDac = new CategoryDac();

            category.CreatedOn = DateTime.Now;
            category.ChangedOn = DateTime.Now;

            return(categoryDac.Create(category));
        }
        /// <summary>
        /// Add method.
        /// </summary>
        /// <param name="category"></param>
        /// <returns></returns>
        public Category Add(Category category)
        {
            var categoryDac = new CategoryDac();

            category.CreatedBy = CreatedBy;
            category.CreatedOn = CreatedOn;
            category.ChangedBy = ChangedBy;
            category.ChangedOn = ChangedOn;
            return(categoryDac.Create(category));
        }
Exemple #3
0
        /// <summary>
        /// Add method.
        /// </summary>
        /// <param name="category"></param>
        /// <returns></returns>
        public Category Add(Category category)
        {
            var categoryDac = new CategoryDac();

            return(categoryDac.Create(category));
        }