public ActionResult Main() { using (Stream stream = Request.InputStream) { Byte[] postBytes = new Byte[stream.Length]; stream.Read(postBytes, 0, (Int32)stream.Length); string postString = Encoding.UTF8.GetString(postBytes); MsgHelp msgHelp = new MsgHelp(); string responseContent = msgHelp.responseMsg(postString); Response.Write(responseContent); } return(View()); }