Ejemplo n.º 1
0
 public bool Post(ProductDTO value)
 {
     return(UjewelriesService.CreateProduct(value.id, value.name,
                                            Convert.ToDouble(value.price), Convert.ToDouble(value.cost),
                                            Int32.Parse(value.inv), Int32.Parse(value.supplier_id),
                                            value.category, bool.Parse(value.is_active)
                                            ));
 }
Ejemplo n.º 2
0
 public bool MakeUserAdmin(LoginDto data)
 {
     /*
      * using (System.IO.StreamWriter file = new System.IO.StreamWriter(@"C:\Users\leska\Documents\123\ERORRLIST.txt", true))
      * {
      *  file.WriteLine(data.id);
      *  file.WriteLine(data.password);
      * }
      */
     return(UjewelriesService.UCTM(data));
 }
Ejemplo n.º 3
0
        static void Main(string[] args)
        {
            // LoginDto temp = new LoginDto();
            // temp.id = "156";
            //Console.WriteLine(UjewelriesService.CreateProduct("123462", "TestoviyHERNYA", 10, 3, 5, 6, "kolco", true));
            //var temp1 = UjewelriesService.UCTM(temp);
            // LoginDto temp = new LoginDto();
            //temp.id = "8";

            //Console.WriteLine(UjewelriesService.AllProductsDTO());
            List <PurchaseDTO> temp = UjewelriesService.GetHistoryById("189");
        }
Ejemplo n.º 4
0
 public List <ProductDTO> GetArr()
 {
     return(UjewelriesService.AllProductsDTO());
 }
Ejemplo n.º 5
0
 public ProductDTO GetProduct(ProductDTO data)
 {
     return(UjewelriesService.GetProductByID(data));
 }
Ejemplo n.º 6
0
 public bool UpdateAccount(ProductDTO data)
 {
     return(UjewelriesService.UpdateProduct(data));
 }
Ejemplo n.º 7
0
 public bool AdminRegistration(AdminRegisterationDTO data)
 {
     return(UjewelriesService.CreateCustomer(Int32.Parse(data.id),
                                             data.name, data.password,
                                             bool.Parse(data.Admin)));
 }
Ejemplo n.º 8
0
 public List <PurchaseDTO> Get(LoginDto id)
 {
     return(UjewelriesService.GetHistoryById(id.id));
 }
Ejemplo n.º 9
0
 public List <SupplierDTO> Get()
 {
     return(UjewelriesService.GetSuppliersList());
 }
Ejemplo n.º 10
0
 public bool Registration(RegistrationDto data)
 {
     return(UjewelriesService.CreateCustomer(Int32.Parse(data.id), data.name, data.password));
 }
Ejemplo n.º 11
0
 public LoginDto Post(LoginDto data)
 {
     return(UjewelriesService.ChackPasswordCustomer(Int32.Parse(data.id), data.password));
 }