Ejemplo n.º 1
0
 public async Task <OperationResult> Delete(int id)
 {
     return(await _appointmentsService.Delete(id));
 }
        public IActionResult Delete(int id)
        {
            _appointmentService.Delete(id);

            return(RedirectToAction("Index"));
        }
Ejemplo n.º 3
0
        public void GivenDeletedAppointmentWhenDeletingThenDeletesFromRepository()
        {
            _service.Delete(3);

            _repository.Verify(x => x.Delete(3), Times.Once());
        }
 public ActionResult <string> Delete(int appointmentId)
 {
     return(_service.Delete(appointmentId));
 }