コード例 #1
0
 /// <summary>
 /// Phương thức cập nhật một ServiceDetail xuống csdl theo id
 /// </summary>
 /// <returns>true: thêm mới thành công, false: thêm mới thất bại</returns>
 public bool UpdateServiceDetail(DTOServiceDetail ServiceDetail)
 {
     try
     {
         return(servicesDAO.UpdateServiceDetail(ServiceDetail));
     }
     catch (SqlException)
     {
         throw;
     }
 }
コード例 #2
0
 /// <summary>
 /// Phương thức cập nhật một ServiceDetail xuống csdl theo id
 /// </summary>
 /// <returns>true: thêm mới thành công, false: thêm mới thất bại</returns>
 public bool UpdateServiceDetail(DTOServiceDetail ServiceDetail)
 {
     try
     {
         DataExecute.Instance.createSqlCmd("sp_EditServiceDetailUpdate" /*Truyen vao storeprocedure*/, new object[5] {
             ServiceDetail.ServicesDetailID, ServiceDetail.OrderDetailID, ServiceDetail.ServicesID, ServiceDetail.Quantity, ServiceDetail.Total
         });
         return(DataExecute.Instance.updateData(DataConnection.Instance.m_cmd) > 0);
     }
     catch (SqlException)
     {
         throw;
     }
 }