Ejemplo n.º 1
0
        public async Task <bool> Delete(int id)
        {
            _treatmentDetailRepository.Delete(id);
            var recordUpdated = await _treatmentDetailRepository.SaveChangeAsync();

            return(recordUpdated > 0);
        }
        public ActionResult Delete(int id)
        {
            if (id > 0)
            {
                tdr.Delete(id);
                return(Ok("Treatment Details deleted"));
            }

            return(NotFound("Treatment Details not found"));
        }