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) )); }
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)); }
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"); }
public List <ProductDTO> GetArr() { return(UjewelriesService.AllProductsDTO()); }
public ProductDTO GetProduct(ProductDTO data) { return(UjewelriesService.GetProductByID(data)); }
public bool UpdateAccount(ProductDTO data) { return(UjewelriesService.UpdateProduct(data)); }
public bool AdminRegistration(AdminRegisterationDTO data) { return(UjewelriesService.CreateCustomer(Int32.Parse(data.id), data.name, data.password, bool.Parse(data.Admin))); }
public List <PurchaseDTO> Get(LoginDto id) { return(UjewelriesService.GetHistoryById(id.id)); }
public List <SupplierDTO> Get() { return(UjewelriesService.GetSuppliersList()); }
public bool Registration(RegistrationDto data) { return(UjewelriesService.CreateCustomer(Int32.Parse(data.id), data.name, data.password)); }
public LoginDto Post(LoginDto data) { return(UjewelriesService.ChackPasswordCustomer(Int32.Parse(data.id), data.password)); }