public IActionResult Post(string name, string surname, string device)
        {
            var osoba   = _osobaRepository.GetByNameSurname(name, surname);
            var uredjaj = _uredjajRepository.GetByName(device);

            _repository.AddData(osoba, uredjaj);
            return(Ok("Osoba: " + name + " " + surname + " je zaduzila: " + device));
        }
Exemplo n.º 2
0
 public IActionResult GetByNameSurname(string name, string surname)
 {
     return(Ok(_repository.GetByNameSurname(name, surname)));
 }