Exemple #1
0
        public object Any(GetArticle request)
        {
            var result = repository.GetArticles();

            return(new GetArticleResponse()
            {
                result = result
            });
        }
Exemple #2
0
    protected void GetStn_SelectedIndexChanged(object sender, EventArgs e)
    {
        GetArticle.Items.Clear();
        GetArticle.Items.Add(new ListItem("-", ""));
        GetArticle.AppendDataBoundItems = true;
        SqlConnection conn      = new SqlConnection(DbConnect.x);
        String        strQuery1 = "select  DISTINCT art_id,art_no FROM Article_Master where ord_no='" + GetStn.SelectedItem.Value + "'";
        //"' and art_id not in (select art_id from IEMaster where Style='" + GetStn.SelectedItem.Value + "')";
        SqlCommand cmd1 = new SqlCommand();

        cmd1.CommandType = CommandType.Text;
        cmd1.CommandText = strQuery1;
        cmd1.Connection  = conn;
        try
        {
            conn.Open();
            GetArticle.DataSource     = cmd1.ExecuteReader();
            GetArticle.DataTextField  = "art_no";
            GetArticle.DataValueField = "art_id";
            GetArticle.DataBind();
            if (GetArticle.Items.Count > 1)
            {
                GetArticle.Enabled = true;
            }
            else
            {
                GetArticle.Enabled = false;
            }
        }
        catch (Exception ex)
        {
            throw ex;
        }
        finally
        {
            conn.Close();
            conn.Dispose();
        }
    }
 public async Task <ActionResult <ArticleDto> > Get([FromRoute] GetArticle query)
 => Single(await QueryAsync(query));
 public async Task <IActionResult> Get([FromRoute] GetArticle query)
 => Ok(await _getArticleHandler.HandleAsync(query));
Exemple #5
0
 public Proxy()
 {
     get = new GetArticle();
 }
 public async Task <ArticleModel> GetArticleAsync([FromBody] GetArticle getArticle)
 {
     return(await _mediator.Send(getArticle));
 }