示例#1
0
        public HttpResponseMessage Post(int compId, int id)
        {
            TblCompJudge value = new TblCompJudge();

            value.CompId = compId;
            value.UserId = id;
            CompetitionDB.TblCompJudges.Add(value);

            return(ToJsonCreated(CompetitionDB.SaveChanges()));
        }
示例#2
0
 public CompJudgeModel(TblCompJudge row)
 {
     Id     = row.Id;
     UserId = row.UserId;
     CompId = row.CompId;
 }