Exemplo n.º 1
0
 public async Task <ExecuteResult> Insert(InsertCategory insertCategory)
 {
     return(await categoryRepository.InsertCategory(new InsertCategoryDTO
     {
         Name = insertCategory.Name,
         AuditedUserId = insertCategory.AuditedUserId
     }));
 }
Exemplo n.º 2
0
        public ExecuteResult Insert(InsertCategory insertCategory)
        {
            ExecuteResultDTO executeResultDTO = categoryRepository.InsertCategory(new CategoryDTO
            {
                Name = insertCategory.Name
            });

            return(new ExecuteResult
            {
                InstanceId = executeResultDTO.InstanceId
            });
        }
 private void buttonSelectInsert_Click(object sender, EventArgs e)
 {
     if (isCategorySelected)
     {
         InsertCategory insertCategory = new InsertCategory();
         insertCategory.Show();
     }
     else
     {
         InsertProduct insertProduct = new InsertProduct();
         insertProduct.Show();
     }
 }