public ActionResult Edit(int id)
        {
            Therapist therapist = service.TherapistGateway.GetOne(id, "Treatments,WorkingHourses");
            if (therapist == null)
            {
                return HttpNotFound();
            }

            CreateTherapistViewModel model = new TherapistViewModel()
            {
                Description = therapist.Description,
                Name = therapist.Name,
                TreatmentsSelectListItems = GetTreatmentForSelectedList(therapist.Treatments),
                WorkingHourses = therapist.WorkingHourses,
                Id = therapist.Id
            };

            return View(model);
        }
        public ActionResult Edit(int id, TherapistViewModel model)
        {
            try
            {
                if (ModelState.IsValid)
                {
                    List<Treatment> treats = new List<Treatment>();
                    model.SelectedTreatmentId = model.SelectedTreatmentId ?? new int[0];
                    foreach (int i in model.SelectedTreatmentId)
                    {
                        treats.Add(service.TreatmentGateway.GetOne(i));
                    }
                    Therapist therapist = new Therapist
                    {
                        Id = id,
                        Name = model.Name,
                        Description = model.Description,
                        Treatments = treats
                    };
                    service.TherapistGateway.Update(therapist);
                    return RedirectToAction("Index");

                }
                return Edit(id);
            }
            catch
            {
                return Edit(id);
            }
        }