public AboutSelfFormViewModel(MyBlogRepository repository) { users = repository.Users; AboutSelf = new AboutSelf(); genderText = new List<String> { "мужской", "женский" }; hobbyText = new List<String> { "спорт", "видеоигры", "коллекционирование", "йога" }; }
public FeedbacksShowViewModel(MyBlogRepository repository) { EditId = -1; Feedbacks = repository.Feedbacks; NewFeedback = new Feedbacks(); }