public void Put(long taskId, long priorityId)
        {
            var task = _taskFetcher.GetTask(taskId);

            var priority = _priorityFetcher.GetPriority(priorityId);

            task.Priority = priority;

            _session.SaveOrUpdate(task);
        }
Ejemplo n.º 2
0
        public Priority Get(long id)
        {
            var priority = _priorityFetcher.GetPriority(id);

            return(_priorityMapper.CreatePriority(priority));
        }