Пример #1
0
        public void CopyWriting(ServiceCopyWriting paramservicecopywriting, string Id)
        {
            Guid UserId = ValidateUser();

            if (UserId != null)
            {
                byte[] bytes;
                if (paramservicecopywriting.ContentVerification != null)
                {
                    using (BinaryReader br = new BinaryReader(paramservicecopywriting.ContentVerification.InputStream))
                    {
                        bytes = br.ReadBytes(paramservicecopywriting.ContentVerification.ContentLength);
                    }
                    CreateNotes("Content Verification", paramservicecopywriting.ContentVerification.FileName, bytes, Id);
                }
                if (paramservicecopywriting.TextDeveloping != null)
                {
                    using (BinaryReader br = new BinaryReader(paramservicecopywriting.TextDeveloping.InputStream))
                    {
                        bytes = br.ReadBytes(paramservicecopywriting.TextDeveloping.ContentLength);
                    }
                    CreateNotes("Text Developing", paramservicecopywriting.TextDeveloping.FileName, bytes, Id);
                }
                if (paramservicecopywriting.Translation != null)
                {
                    using (BinaryReader br = new BinaryReader(paramservicecopywriting.Translation.InputStream))
                    {
                        bytes = br.ReadBytes(paramservicecopywriting.Translation.ContentLength);
                    }
                    CreateNotes("Translation", paramservicecopywriting.Translation.FileName, bytes, Id);
                }
            }
        }
Пример #2
0
        public ActionResult copywriting(ServiceCopyWriting paramservicecopywriting)
        {
            if (ModelState != null && ModelState.IsValid)
            {
                objUtility.CopyWriting(paramservicecopywriting, Session["Id"].ToString());
                //return RedirectToAction("Agreement", "ServiceAgreement");

                return(RedirectToAction("Designs", "Services"));
            }
            return(View());
        }