/// <summary>
 /// Adds a Immunization to the Repository.
 /// </summary>
 /// <param name="entity">The Immunization to add to the Repository.</param>
 public void Add(Immunization entity)
 {
     Session.Save(entity);
 }
 /// <summary>
 /// Removes a Immunization from the Repository.
 /// </summary>
 /// <param name="entity">The Immunization to remove from the Repository.</param>
 public void Remove(Immunization entity)
 {
     Session.Delete(entity);
 }
        /// <summary>
        /// Add new immunization
        /// </summary>
        /// <returns></returns>
        public JsonResult AddNewImmunization()
        {
            try
            {
                ImmunizationRepository immunRepo = new ImmunizationRepository();
                Immunization immun = new Immunization();

                immun.VaccineType = Request.Form["VaccieType"];
                immun.IsActive = true;

                immunRepo.Add(immun);

                return Json(new
                {
                    error = "false",
                    immun.Id,
                    immun.VaccineType
                });
            }
            catch (Exception e)
            {
                return Json(new
                {
                    error = "true",
                    errorMessage = e.Message
                });
            }
        }