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())); }
public CompJudgeModel(TblCompJudge row) { Id = row.Id; UserId = row.UserId; CompId = row.CompId; }