public static Area Get(int id) { Area item; AreaEntity entity; entity = AreaDao.Get(id); item = AreaMapper.Get(entity); return(item); }
public void TestGetPage() { IAreaDao area = new AreaDao(); int count = 0; IList <TravelAgent.Model.Area> list = area.Get("", 2, 10, out count); foreach (TravelAgent.Model.Area item in list) { Console.WriteLine(item.ShortName); } }
public void Add() { IAreaDao area = new AreaDao(); IList <TravelAgent.Model.Area> list = area.Get("Pid = 510000"); //Assert.IsNotNull(list); foreach (TravelAgent.Model.Area item in list) { Console.WriteLine(item.Name); } }
public Area GetArea(Expression <Func <Area, bool> > criteria) { return(AreaDao.Get(criteria)); }
public Area GetArea(int id) { return(AreaDao.Get(id)); }
public bool CodigoAreaExiste(string codigo, int idEmpresa) { Area area = AreaDao.Get(x => x.Codigoarea == codigo && x.Idempresa == idEmpresa); return(area != null); }