コード例 #1
0
        public void CategoryEkle()
        {
            string categoryId = tempcategoryID == null?Guid.NewGuid().ToString() : tempcategoryID;

            string categoryName = tbxCategoryName.Text;
            string description  = tbxDescription.Text;

            CRUDHelper.AddCategory(new Categories
            {
                CategoryId   = categoryId,
                CategoryName = categoryName,
                Description  = description,
                CreatedDate  = DateTime.Now
            });
            MessageBox.Show("Kayit oldu");
        }