예제 #1
0
    private void SaveQuery()
    {
        Query q = new Query();

        q.UserName    = Name.Text;
        q.UserEmail   = Email.Text;
        q.Text        = Content.Text;
        q.CreatedOn   = Clock.GetTime();
        q.HostAddress = Request.UserHostAddress;
        q.Category    = CategoryRepository.FindById(DataUtility.ParseInt(Category.SelectedValue));

        QueryRepository.Save(q);
    }