CEDTS_Instructions ICedts_NoticeRepository.GetInstructionsInfo()
        {
            var item = db.CEDTS_Instructions.FirstOrDefault();

            if (item == null)
            {
                CEDTS_Instructions instrucion = new CEDTS_Instructions();
                instrucion.Content        = string.Empty;
                instrucion.InstructionsID = 1;
                db.AddToCEDTS_Instructions(instrucion);
                db.SaveChanges();
                item = instrucion;
            }
            return(item);
        }
        void ICedts_NoticeRepository.EidtInstructions(string content)
        {
            var instructions = db.CEDTS_Instructions.FirstOrDefault();

            if (instructions != null)
            {
                var tempInstructions = instructions;
                tempInstructions.Content = content;
                db.ApplyCurrentValues(instructions.EntityKey.EntitySetName, tempInstructions);
            }
            else
            {
                instructions         = new CEDTS_Instructions();
                instructions.Content = content;
                db.AddToCEDTS_Instructions(instructions);
            }
            db.SaveChanges();
        }