public PersonSecurity GetPersonSecurity(string username, string password) { try { PersonDAL repository = new PersonDAL(); PersonSecurity personSecurity = new PersonSecurity(); return(personSecurity = repository.GetPersonSecurity(username, password)); } catch (Exception ex) { throw ex; } }