public void AssignExpertsToProblem(int id, [FromBody] int[] expertIds) { _currentUser = AuthHelper.GetUserFromAuthHeader(Request); if (!AuthHelper.VerifyUserAuthorizedAnalytic(_currentUser)) { return; } foreach (var expertIdEstimator in expertIds) { foreach (var expertIdEstimated in expertIds) { if (expertIdEstimator == expertIdEstimated) { continue; } var estOnExpertDB = new EstimationOnExpert() { IdEstimatedExpert = expertIdEstimated, IdEstimator = expertIdEstimator, IdProblem = id, Value = null }; DbHelper.CreateEstimationOnExpert(estOnExpertDB); } } }
public void UpdateEstimationOnExpertValue() { var est = new EstimationOnExpert { IdEstimatedExpert = 1, IdEstimator = 3, IdProblem = 11, Value = 5 }; DbHelper.UpdateEstimationOnExpert(est); }