public void Put(long taskId, long priorityId) { var task = _taskFetcher.GetTask(taskId); var priority = _priorityFetcher.GetPriority(priorityId); task.Priority = priority; _session.SaveOrUpdate(task); }
public Priority Get(long id) { var priority = _priorityFetcher.GetPriority(id); return(_priorityMapper.CreatePriority(priority)); }