public async Task <IActionResult> Delete(string crm) { if (string.IsNullOrEmpty(crm)) { return(NotFound()); } Medic medicDeleted; medicDeleted = await _medicService.DeleteByCrmAsync(crm); if (medicDeleted == null) { return(CustomResponse(statusCode: StatusCodes.Status404NotFound)); } return(Ok(_mapper.Map <Medic, MedicDTO>(medicDeleted))); }
public async void ChoosingToDeleteMedic() { await m_medicService.DeleteByCrmAsync(m_medic.CRM); }