public void HasEmail(FormCollection collection) { User user = new User(); if (!string.IsNullOrWhiteSpace(collection["Email"])) { base.Response.ContentType = "application/text"; if (user.HasUserByEmail(collection["Email"].Trim())) { base.Response.Write("true"); } else { base.Response.Write("false"); } } }