Esempio n. 1
0
 public bool Update(int?id, SupplierParam supplierParam)
 {
     if (id == null)
     {
         Console.WriteLine("Please Insert Id");
         Console.Read();
     }
     else if (id.ToString() == " ")
     {
         Console.WriteLine("Dont Insert white space");
         Console.Read();
     }
     else
     {
         if (supplierParam == null)
         {
             Console.WriteLine("Please Insert Supplier");
             Console.Read();
         }
         else if (supplierParam.ToString() == " ")
         {
             Console.WriteLine("Dont Insert white space");
             Console.Read();
         }
         else
         {
             status = _supplierRepository.Update(id, supplierParam);
             Console.WriteLine("Update Successfuly");
             Console.Read();
         }
     }
     return(status);
 }
Esempio n. 2
0
 public bool Insert(SupplierParam supplierParam)
 {
     if (supplierParam == null)
     {
         Console.WriteLine("Don't Null Data");
         Console.Read();
     }
     else if (supplierParam.ToString() == " ")
     {
         Console.WriteLine("Don't White Space");
         Console.Read();
     }
     else
     {
         status = _supplierRepository.Insert(supplierParam);
     }
     return(status);
 }
Esempio n. 3
0
 public bool Insert(SupplierParam supplierParam)
 {
     if (supplierParam == null)
     {
         Console.WriteLine("Please Insert Supplier");
         Console.Read();
     }
     if (supplierParam.ToString() == " ")
     {
         Console.WriteLine("Don't insert blank character");
         Console.Read();
     }
     else
     {
         status = _supplierRepository.Insert(supplierParam);
         Console.WriteLine("Insert Succesfully");
         Console.Read();
     }
     return(status);
 }
Esempio n. 4
0
 public bool Insert(SupplierParam supplierParam)
 {
     if (supplierParam == null)
     {
         Console.WriteLine("Please Insert Data");
         Console.Read();
     }
     else if (supplierParam.ToString() == " ")
     {
         Console.WriteLine("Dont Insert white space");
         Console.Read();
     }
     else
     {
         status = _supplierRepository.Insert(supplierParam);
         Console.WriteLine("Insert Successfuly");
         Console.Read();
     }
     return(status);
 }