public async Task <IActionResult> DeleteAsyncTreatment(int id) { var result = await _treatmentService.DeleteAsyncTreatment(id); if (!result.Success) { return(BadRequest(result.Message)); } var treatmenResource = _mapper.Map <TreatmentModel, TreatmentResources>(result.Treatment); return(Ok(treatmenResource)); }