public JsonResult InviteUsers(string email, string roles) { Ctx ct = Session["ctx"] as Ctx; CreateUser model = new CreateUser(ct); List <RolesInfo> infos = JsonConvert.DeserializeObject <List <RolesInfo> >(roles); return(Json(JsonConvert.SerializeObject(model.InviteUsers(email, infos)), JsonRequestBehavior.AllowGet)); }