예제 #1
0
        public void SaveAirlineGroup(AirlineGroupViewModel model)
        {
            var entitymodel = new AirlineGroups
            {
                AirlineGroupName = model.GroupName,
            };

            ent.AddToAirlineGroups(entitymodel);
            ent.SaveChanges();
        }
예제 #2
0
        public string GetAirlineGroupName(int id)
        {
            AirlineGroups group = ent.AirlineGroups.Where(ggb => ggb.AirlineGroupId == id).SingleOrDefault();

            return(group.AirlineGroupName);
        }