public string Get(string setting) { if (setting == "init") { _patentRepository.RemoveAll(); _patentRepository.Add(new Patient() { Id = "1", FullName = "Mohammad Bitar", PhoneNumber = "05313611777", Notes = "Something wrong with me!!!" }); _patentRepository.Add(new Patient() { Id = "2", FullName = "Salim Bitar", PhoneNumber = "05313611888", Notes = "Something wrong with me again!!!" }); return("Done"); } return("Unknown"); }
public void Post([FromBody] Patient patient) { _patentRepository.Add(patient); }