public ActionResult Edit_DataAnnotation(DataAnnotationViewModels DataAnnotation)
        {
            if (!ModelState.IsValid)
            {
                return(View(DataAnnotation));
            }
            try
            {
                this.db.Entry <DataAnnotationViewModels>(DataAnnotation).State = EntityState.Modified;
                this.db.SaveChanges();
            }
            catch (Exception ex)
            {
                var excep = ex.Message;
            }

            return(RedirectToAction("DataFieldDetails", new { id = DataAnnotation.DataFieldId }));
        }
        public ActionResult Add_DataAnnotation(DataAnnotationViewModels DataAnnotation)
        {
            if (!ModelState.IsValid)
            {
                return(View(DataAnnotation));
            }
            try
            {
                db.DataAnnotations.Add(DataAnnotation);
                db.SaveChanges();
            }
            catch (Exception ex)
            {
                var excep = ex.Message;
            }

            return(RedirectToAction("DataFieldDetails", new { id = DataAnnotation.DataFieldId }));
        }