Beispiel #1
0
 public void ApproveRejectProduct(ApproveRejectProductDto approveRejectProductDto)
 {
     var cn = new SqlConnection(GetConnection());
     SqlTransaction trx = null;
     try
     {
         cn.Open();
         var cmd = new SqlCommand("update Products  set IsApprove='" + approveRejectProductDto.IsApprove + "',AppoveBy=" + approveRejectProductDto.ApproveBy + ",AppoverejectDate='" + DateTime.Now.ToString("yyyy-MM-dd") + "' where ProductId=" + approveRejectProductDto.ProductId, cn);
         cmd.ExecuteNonQuery();
         cn.Close();
     }
     catch (Exception)
     {
         cn.Close();
     }
 }
Beispiel #2
0
 public void ApproveRejectProduct(ApproveRejectProductDto approveRejectProductDto)
 {
     _iMemberRepository.ApproveRejectProduct(approveRejectProductDto);
 }
 public void ApproveRejectProduct(ApproveRejectProductDto approveRejectProductDto)
 {
     _iMemberHelper.ApproveRejectProduct(approveRejectProductDto);
 }