示例#1
0
 public Voter Create(VoterModel model)
 {
     return(new Voter
     {
         VotName = model.VotName,
         StaffNo = model.StaffNo,
         CreatedBy = model.CreatedBy,
         CreatedDate = DateTime.Now,
         ModifiedDate = DateTime.Now
     });
 }
示例#2
0
 public Voter Edit(Voter entity, VoterModel model)
 {
     // entity.VoterId = model.VoterId;
     entity.UserId    = model.UserId;
     entity.StaffName = model.StaffName;
     entity.StaffNo   = model.StaffNo;
     entity.Email     = model.Email;
     //entity.CreatedBy = model.CreatedBy;
     entity.ModifiedBy   = model.ModifiedBy;
     entity.ModifiedDate = DateTime.Now;
     return(entity);
 }
示例#3
0
 public Voter Create(VoterModel model)
 {
     return(new Voter
     {
         UserId = model.UserId,
         StaffName = model.StaffName,
         StaffNo = model.StaffNo,
         Email = model.Email,
         CreatedBy = model.CreatedBy,
         CreatedDate = DateTime.Now,
         //ModifiedDate = DateTime.Now
     });
 }
示例#4
0
 public ScoreModel(Score scores)
 {
     this.Assign(scores);
     Restaurant = new RestaurantModel();
     Voters     = new VoterModel();
 }
示例#5
0
 public RatingModel(Rating ratings)
 {
     this.Assign(ratings);
     Restaurant = new RestaurantModel();
     Voters     = new VoterModel();
 }