public List <Customer> GetCustomersJSON() { if (!CheckBasicAuthentication()) { //Autenticazione non riuscita throw new WebFaultException(HttpStatusCode.Unauthorized); } DALCustomers DAL = new DALCustomers(); return(DAL.GetCustomers()); }