public IHttpActionResult AddSuppliers([FromBody] Models.Contact.Supplier supplier) { var cs = new BLL.ContactManager(); cs.AddSuppliers(supplier); return(Ok()); }
public IHttpActionResult DeleteSupplier(long SupplierId) { var cs = new BLL.ContactManager(); cs.DeleteSuppliers(SupplierId); return(Ok()); }
public IHttpActionResult DeleteCustomer(long CustomerId) { var cs = new BLL.ContactManager(); cs.DeleteCustomers(CustomerId); return(Ok()); }
public IHttpActionResult ModifyCustomer([FromBody] Models.Contact.Customer customer) { var cs = new BLL.ContactManager(); cs.ModifyCustomers(customer); return(Ok()); }
public IHttpActionResult GetSupplier(long SupplierId) { var cs = new BLL.ContactManager(); return(Json(cs.GetSupplier(SupplierId))); }
public IHttpActionResult GetCustomer(long CustomerId) { var cm = new BLL.ContactManager(); return(Json(cm.GetCustomer(CustomerId))); }