示例#1
0
        public async Task <ActionResult> GetClaimEmail(string emailId, bool withAttachments)
        {
            EmailServices emailService = new EmailServices();
            EmailSimple   emailRec     = await emailService.GetClaimEmail(emailId, withAttachments);

            var obj = new JavaScriptSerializer()
            {
                MaxJsonLength = Int32.MaxValue
            };

            return(new JsonResult()
            {
                Data = emailRec, MaxJsonLength = Int32.MaxValue, JsonRequestBehavior = JsonRequestBehavior.AllowGet
            });
            //return Json(obj.Serialize(emailRec), JsonRequestBehavior.AllowGet);
        }