public IEnumerable<object> Get(string ViewName) { using (EnDBContext context = new EnDBContext()) { switch (ViewName) { case "V_R_RESULT": return Mapper.Map<List<vmRResult>>(context.V_R_RESULT.ToList()); case "V_REL_SHIP": return Mapper.Map<List<vmRelShip>>(context.V_REL_SHIP.ToList()); } return null; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)