コード例 #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                AssigneeRepository assigneeRepository = new AssigneeRepository();
                ddlAssignees.DataSource = assigneeRepository.GetAllAssignees();
                ddlAssignees.DataBind();

                PriorityRepository priorityRepository = new PriorityRepository();
                ddlPriorities.DataSource = priorityRepository.GetAllPriorities();
                ddlPriorities.DataBind();
                FillRepeater();
            }
        }
コード例 #2
0
 protected string GetAssigneeDetails(object id)
 {
     AssigneeRepository assigneeRepository = new AssigneeRepository();
     Guid Id = Guid.Empty, idOut;
     if (Guid.TryParse(id.ToString(), out idOut))
     {
         Id = idOut;
     }
     var assignee = assigneeRepository.GetAssigneeById(Id);
     return String.Join(" ", assignee.LastName, assignee.FirstName);
 }