public ActionResult CreateItem(string code, string from, string to, string caption, string template, string cc, string bcc) { bool res; var msg = ""; res = mng.CreateNewMail(new EmailItem { code = code, from = from, to = to, subject = caption, template = template, cc = cc, bcc = bcc }, out msg); return(Json(new { result = res, msg })); }