public ActionResult <Mt4Daily> Get(int id) { using (var context = new mt4_reportContext()) { var daily = context.Mt4Daily.Where(l => l.Login == id).Single(); return(daily); } }
public IActionResult Get() { using (var context = new mt4_reportContext()) { var dbcontext = new mt4_reportContext(); return(Ok(dbcontext.Mt4Daily.AsQueryable())); } }