Пример #1
0
 public AcceptedProposalController()
 {
     _db   = new ApplicationDbContext();
     ProVM = new PostAndProposelViewModel()
     {
         PostJob   = _db.PostJobs,
         Proposals = _db.Proposals
     };
 }
 public ReceivdProposalsController()
 {
     _db   = new ApplicationDbContext();
     ProVM = new PostAndProposelViewModel()
     {
         PostJob   = _db.PostJobs,
         Proposals = _db.Proposals
     };
     PropAndUserVM = new ProposalAndUserInfoViewModel()
     {
         UserData     = _db.Users,
         ProposalData = _db.Proposals
     };
 }