public ActionResult Index(HumanResource record)
        {
           string lang=FillLanguagesList();
            record.Language = lang;
            
            ViewBag.ProcessMessage = HumanResourceManager.EditHumanResource(record);
            

            return View();
        }
        public static bool EditHumanResource(HumanResource record)
        {
            using (DeneysanContext db = new DeneysanContext())
            {
                HumanResource editrecord = db.HumanResource.SingleOrDefault(d =>  d.Language == record.Language);
        
                if (editrecord == null)
                {
                    editrecord = new HumanResource();
                    editrecord.Language = record.Language;
                    editrecord.Content = record.Content;
                    db.HumanResource.Add(editrecord);
                }
                else
                {
                    editrecord.Content = record.Content;
                }

                db.SaveChanges();

                return true;
            }
        }