public KorisnikDTO GetKorisnikByKorisnickoIme(string korisnickoIme) { try { using (BHaoDataContext context = new BHaoDataContext()) { KorisnikRepository repo = new KorisnikRepository(context); return(repo.GetByKorisnickoIme(korisnickoIme)); } } catch (Exception ex) { throw new FaultException(ex.Message); } }