ViewModel for the Invitation class
Exemplo n.º 1
0
        public static InvitationViewModel Create(IRepository repository, Invitation invitation = null)
        {
            Check.Require(repository != null, "Repository must be supplied");

            var viewModel = new InvitationViewModel {
                Invitation = invitation ?? new Invitation()
            };

            return(viewModel);
        }
Exemplo n.º 2
0
        public static InvitationViewModel Create(IRepository repository, Invitation invitation = null)
        {
            Check.Require(repository != null, "Repository must be supplied");

            var viewModel = new InvitationViewModel {Invitation = invitation ?? new Invitation()};

            return viewModel;
        }