public ActionResult Edit(int id)
        {
            ViewBag.DietaryID = new SelectList(_register.ListRegistration(), "DietaryID", "DietaryDescription");
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }

            return(View(_register.GetRegister(id)));
        }