public List <Models.Tables.Special> GetAllSpecials() { List <Models.Tables.Special> specials = new List <Models.Tables.Special>(); using (_ctx = new GuildCarsEntities()) { var listOfSpecials = _ctx.GetAllSpecials(); foreach (var s in listOfSpecials) { Models.Tables.Special hp = new Models.Tables.Special(); hp.SpecialId = s.SpecialId; hp.SpecialTitle = s.SpecialTitle; hp.SpecialDescription = s.SpecialDescription; specials.Add(hp); } } return(specials); }
public IEnumerable <GetSpecials> GetSpecials() { List <GetSpecials> specials = new List <GetSpecials>(); using (_ctx) { var listOfSpecials = _ctx.GetAllSpecials(); foreach (var s in listOfSpecials) { GetSpecials hp = new GetSpecials(); hp.SpecialId = s.SpecialId; hp.SpecialTitle = s.SpecialTitle; hp.SpecialDescription = s.SpecialDescription; specials.Add(hp); } } return(specials); }
public List <GetSpecials> GetAllSpecials() { List <GetSpecials> specials = new List <GetSpecials>(); using (_ctx = new GuildCarsEntities()) { var listOfSpecials = _ctx.GetAllSpecials(); foreach (var s in listOfSpecials) { GetSpecials hp = new GetSpecials(); hp.SpecialId = s.SpecialId; hp.SpecialTitle = s.SpecialTitle; hp.SpecialDescription = s.SpecialDescription; specials.Add(hp); } } return(specials); //throw new NotImplementedException(); }