Exemplo n.º 1
0
        public int deleteMedicalShop(EntMedicalShop objent)
        {
            string ConnectionString = ConfigurationManager.ConnectionStrings["ConString"].ConnectionString;
            SqlConnection conn = new SqlConnection(ConnectionString);
            conn.Open();
            SqlCommand cmd = new SqlCommand("Usp_DeleteMedicalShop", conn);
            cmd.CommandType = CommandType.StoredProcedure;

                cmd.Parameters.AddWithValue("@MedicalShopID", objent.MedicalShopID);
                int result = cmd.ExecuteNonQuery();

                cmd.Dispose();

                conn.Close();

                return result;
        }
Exemplo n.º 2
0
 public int deleteMedicalShop(EntMedicalShop objent)
 {
     DLMedicalShop objdl = new DLMedicalShop();
     int result = objdl.deleteMedicalShop(objent);
     return result;
 }