public ActionResult <IEnumerable <AppointmentViewModel> > FindByUserNull() { var response = _Service.FindByUserNull(); if (response.Error) { return(BadRequest(response.Message)); } var patient = response.Object.Select(p => new AppointmentViewModel(p)); return(Ok(patient)); }