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));
        }
示例#2
0
 public IActionResult GetByNameSurname(string name, string surname)
 {
     return(Ok(_repository.GetByNameSurname(name, surname)));
 }