コード例 #1
0
        public IHttpActionResult CopyInquiryByID(int InquiryID)
        {
            WebResponseContentModel <bool> deleteInquiry = new WebResponseContentModel <bool>();

            try
            {
                deleteInquiry.Content = inquiryRepo.CopyInquiryByID(InquiryID);

                if (deleteInquiry.Content)
                {
                    deleteInquiry.IsRequestSuccesful = true;
                }
                else
                {
                    deleteInquiry.IsRequestSuccesful = false;
                    deleteInquiry.ValidationError    = ValidationExceptionError.res_04;
                }
            }
            catch (Exception ex)
            {
                deleteInquiry.IsRequestSuccesful = false;
                deleteInquiry.ValidationError    = ExceptionValidationHelper.GetExceptionSource(ex);
                return(Json(deleteInquiry));
            }

            return(Json(deleteInquiry));
        }