// GET: api/Eraisik/5 public IEnumerable <Eraisik> Get(int yritus_id, int?id = null) { List <Eraisik> Eraisikud = new List <Eraisik>(); GetAccess db = new GetAccess(); Eraisikud = db.GetEraisikud(yritus_id, id); return(Eraisikud); }
// GET: api/Yritus/5 public List <Yritus> Get(int?Id = null) { List <Yritus> Yritused = new List <Yritus>(); GetAccess db = new GetAccess(); Yritused = db.GetYritused(Id); return(Yritused); }
// GET: api/JurIsik/5 public IEnumerable <JurIsik> Get(int yritus_id, int?id = null) { List <JurIsik> JurIsikud = new List <JurIsik>(); GetAccess db = new GetAccess(); JurIsikud = db.GetJurIsikud(yritus_id, id); return(JurIsikud); }
public MainWindow() { get = new GetAccess(); add = new AddAccess(); update = new UpdateAccess(); delete = new DeleteAccess(); InitializeComponent(); PopuniComboBoxTabele(); }
/// <summary> /// On getting access /// </summary> /// <param name="args">Arguments</param> /// <returns></returns> public virtual Tuple <object, bool, CurrentProvider> OnGetAccess ( AccessHandler args ) { return(GetAccess?.Invoke ( args )); }