Example #1
0
        public static bool add(AttractionRide a)
        {
            db.AttractionRides.Add(a);
            db.SaveChanges();

            return(true);
        }
        public static AttractionRide create(string name, string description, string type)
        {
            AttractionRide a = new AttractionRide();

            a.Name        = name;
            a.Description = description;
            a.Type        = type;
            a.Status      = "Active";

            return(a);
        }
Example #3
0
        public bool add(string name, string description, string type)
        {
            AttractionRide a = AttractionRideFactory.create(name, description, type);

            return(AttractionRideRepository.add(a));
        }