Exemple #1
0
        /// <summary>
        /// add the category
        /// </summary>
        /// <param name="name">the name of the category you want to add</param>
        /// <returns></returns>
        private dynamic AddCategory(string name)
        {
            CategoryInfo entity = new CategoryInfo {
                CategoryName = name
            };

            ResponseModel json = _cateLogic.AddCategory(entity);

            return(Response.AsText(JsonConvert.SerializeObject(json), "application/json; charset =UTF-8"));
        }