public async Task <ActionResult <ConfDoctor> > UpdateConfDoctorAsync(int id, ConfDoctor confDoctors) { if (id != confDoctors.Id) { return(BadRequest()); } var updateReturn = await _confDoctorsRepository.Update(id, confDoctors); if (updateReturn != null) { return(Ok(confDoctors)); } return(BadRequest()); }
public async Task <ActionResult <Contact> > UpdateContactAsync(int id, Contact contact) { if (id != contact.Id) { return(BadRequest()); } var updateReturn = await _contactRepository.Update(id, contact); if (updateReturn != null) { return(Ok(contact)); } return(BadRequest()); }
public async Task <ActionResult <Expertise> > UpdateExpertiseAsync(int id, Expertise expertise) { if (id != expertise.Id) { return(BadRequest()); } var updateReturn = await _expertiseRepository.Update(id, expertise); if (updateReturn != null) { return(Ok(expertise)); } return(BadRequest()); }
public async Task <ActionResult <City> > UpdateCityAsync(int id, City city) { if (id != city.Id) { return(BadRequest()); } var updateReturn = await _cityRepository.Update(id, city); if (updateReturn != null) { return(Ok(city)); } return(BadRequest()); }
public async Task <ActionResult <Document> > UpdateDocumentAsync(int id, Document document) { if (id != document.Id) { return(BadRequest()); } var updateReturn = await _documentRepository.Update(id, document); if (updateReturn != null) { return(Ok(document)); } return(BadRequest()); }
public async Task <ActionResult <Schedule> > UpdateScheduleAsync(int id, Schedule schedule) { if (id != schedule.Id) { return(BadRequest()); } var updateReturn = await _scheduleRepository.Update(id, schedule); if (updateReturn != null) { return(Ok(schedule)); } return(BadRequest()); }
public async Task <ActionResult <Role> > UpdateRoleAsync(int id, Role role) { if (id != role.Id) { return(BadRequest()); } var updateReturn = await _roleRepository.Update(id, role); if (updateReturn != null) { return(Ok(role)); } return(BadRequest()); }
public async Task <ActionResult <Adress> > UpdateAdressAsync(int id, Adress adress) { if (id != adress.Id) { return(BadRequest()); } var updateReturn = await _adressRepository.Update(id, adress); if (updateReturn != null) { return(Ok(adress)); } return(BadRequest()); }
public async Task <ActionResult <DocsecRel> > UpdateDocsecRelAsync(int id, DocsecRel ocsecRel) { if (id != ocsecRel.Id) { return(BadRequest()); } var updateReturn = await _ocsecRelRepository.Update(id, ocsecRel); if (updateReturn != null) { return(Ok(ocsecRel)); } return(BadRequest()); }