public static TarrifePlan getInstance(string name) { if (instance == null) { instance = new TarrifePlan(name); } return(instance); }
//отдать модель BS(Agreement, User, TariffPlan, Station) public AgreementStatus Sign(User user, TarrifePlan tarrifePlan, Station station) { _user = user; _tarrifePlan = tarrifePlan; _station = station; return(AgreementStatus.Ok); }
public Agreement(string phoneNumber, User user, TarrifePlan tarrifePlan, Station station, string dogNumder, DateTime docDate, string note) { PhoneNumber = phoneNumber; _user = user; _tarrifePlan = tarrifePlan; _station = station; _docNumber = _docNumber; _docDate = docDate; _note = note; }