Ejemplo n.º 1
0
        //To fill Y
        public bool InsertRatings(String[] expressions, UserProfile[] users, double[,] Y)
        {
            try
            {
                TaskManager mgr = new TaskManager();
                List<Task> tasks = mgr.selectAllTask();
                foreach (Task task in tasks)
                {

                    int[,] result = this.GetYIndex(task.JobId.ToString(), task.RecruiteeId.ToString(), expressions, users);
                    task.Rating = (decimal)Y[result[0, 0], result[0, 1]];
                    mgr.updateTask(task);
                }

                return true;
            }
            catch (Exception ex)
            {
                return false;
            }
        }
Ejemplo n.º 2
0
 public Boolean updateTask(Guid TaskId, Guid JobId, Guid RecruiteeId, String TaskDescription, double? Rating)
 {
     Task obj = Task.createTask(TaskId, JobId, RecruiteeId, TaskDescription, (decimal?)Rating);
     TaskManager mgr = new TaskManager();
     return mgr.updateTask(obj);
 }