public IEnumerable <Area> Get() { var a = new MAppTable(_context); //a.BringData("119850540652"); using (var db = new appointmentxContext()) { return(db.Area.ToList()); } }
public IEnumerable <int> Get() { var data = new ReqData(); var dd = new DateTime(2020, 01, 08); data.ReDate = dd; data.ReNid = "119850540652"; data.CompanyId = 1; var a = new MAppTable(_context); var res = a.SrchAppTableData(data); return(new int[] { res }); }