public async Task Delete(int id) { DoctorsChamber d = await _repo.GetTById(id); _repo.Delete(d); await _repo.SaveAsync(d); }
public async Task <ActionResult <DoctorsChamber> > Post([FromBody] DoctorsChamber value) { _repo.Add(value); await _repo.SaveAsync(value); return(Ok()); }
public void Put(int id, [FromBody] DoctorsChamber value) { _repo.Update(value); }