Beispiel #1
0
        public ActionResult DeleteClient(int tutorId, int clientId)
        {
            Tutor  currentTutor  = Tutor.Find(tutorId);
            Client currentClient = Client.Find(clientId);

            currentTutor.DeleteClient(currentClient);
            return(RedirectToAction("Clients", new { id = currentTutor.Id }));
        }