Ejemplo n.º 1
0
        public object saveReqPost(postInfo pr)
        {
            Results<string> result = new Results<string>();

            try
            {
                HelperData h = new HelperData();
                pr.deleted = false;
                int postCode = h.AddPostInfo(pr);
                if (postCode != 0 && postCode != -1)
                {
                        result.IsSuccessfull = true;
                }
                else
                {
                    result.IsSuccessfull = false;
                    result.Message = "خطا!عنوان شغلی وارد شده قبلا در سیستم ثبت شده است.";
                }
            }
            catch (Exception error)
            {
                result.IsSuccessfull = false;
                result.Message = error.Message;
                // reservDB.Transaction.Rollback();
            }
            return result;
        }
Ejemplo n.º 2
0
        public object saveReqPost(postInfo pr)
        {
            Results<string> result = new Results<string>();

            try
            {
                HelperData h = new HelperData();
                pr.deleted = false;
                int postCode = h.AddPostInfo(pr);
                if (postCode != 0)
                {
                        result.IsSuccessfull = true;
                }
            }
            catch (Exception error)
            {
                result.IsSuccessfull = false;
                result.Message = error.Message;
                // reservDB.Transaction.Rollback();
            }
            return result;
        }