public Model.UpitiVozila GetById(int id) { var entity = _db.Set <Database.UpitiVozila>().Find(id); return(_mapper.Map <Model.UpitiVozila>(entity)); }
public Model.UpitiAdmin GetById(int id) { var entity = _db.Set <Database.KontaktUpit>().Find(id); return(_mapper.Map <Model.UpitiAdmin>(entity)); }
public virtual List <TModel> Get(TSearch search) { var list = _db.Set <TDatabase>().ToList(); return(_mapper.Map <List <TModel> >(list)); }