Пример #1
0
        public void iDelProject(string proname)
        {
            string    cnStr = ConfigurationManager.ConnectionStrings["sqlProviderParallelTask"].ConnectionString;
            TaskModel tm    = new TaskModel(cnStr);

            try
            {
                if (!tm.DeletePro(proname))
                {
                    return;
                }
            }
            catch (SqlException e)
            {
                WcfException ex = new WcfException();
                ex.message = e.Message;
                throw new FaultException <WcfException>(ex, ex.message);
            }
        }