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); }
public bool add(string name, string description, string type) { AttractionRide a = AttractionRideFactory.create(name, description, type); return(AttractionRideRepository.add(a)); }