public ActionResult Delete(Company company)
        {
            Company CompanyDelete = _ContextData.Get<Company>(company.Id);
            _ContextData.Delete<Company>(CompanyDelete);
            _ContextData.SaveChanges( );

            return RedirectToAction("Sucess", "Home");
        }
 public ActionResult Create(Company company)
 {
     if (ModelState.IsValid)
     {
         _ContextData.Add<Company>(company);
         _ContextData.SaveChanges( );
         return RedirectToAction("Index", "Home");
     }
     return View( );
 }
        public ActionResult Create(Company company)
        {
            if (ModelState.IsValid)
            {
                MembershipCreateStatus createStatus;
                Membership.CreateUser(company.Name, company.Name.Replace(" ","") + "IdezJobs", company.Email, null, null, true, null, out createStatus);

                if (createStatus == MembershipCreateStatus.Success)
                {

                    _ContextData.Add<Company>(company);
                    _ContextData.SaveChanges( );

                    Roles.AddUserToRole(company.Name, "Company");
                    return RedirectToAction("ListCompany", "Company");

                }
            }
            return View( );
        }
 public ActionResult Edit(Company company)
 {
     Company CompanyEdit = _ContextData.Get<Company>(company.Id);
     TryUpdateModel(CompanyEdit);
     _ContextData.SaveChanges( );
     return RedirectToAction("ListCompany", "Company");
 }