// GET: SkillResource/Create
        public ActionResult Create()
        {
            SkillResourceModel pm = new SkillResourceModel();

            pm.Skills = sk.GetMany().Select(c => new SelectListItem
            {
                Text  = c.SkillName,
                Value = c.SkillId.ToString(),
            });
            pm.Resources = sr.GetMany().Select(e => new SelectListItem
            {
                Text  = e.FirstName,
                Value = e.Id,
            });


            return(View(pm));
        }
        public ActionResult Create(SkillResourceModel skm)
        {
            try
            {
                SkillResource sk = new SkillResource
                {
                    ResourceIdFK = skm.ResourceIdFK,
                    SkillIdFK    = skm.SkillIdFK,
                    Level        = skm.Level
                };

                sc.Add(sk);
                sc.Commit();

                return(RedirectToAction("Index"));
            }
            catch
            {
                return(View());
            }
        }