public ActionResult OrganisationDetails(int?id)
        {
            OrganisationM Organisation = _context.GetById(id ?? 1);


            return(View(Organisation));
        }
 public IActionResult OrganisationCreate(OrganisationM nowyOrganisation)
 {
     if (ModelState.IsValid)
     {
         Organisation newemploye = _context.Create(nowyOrganisation);
         return(RedirectToAction("details", new { id = newemploye.OrganisationId }));
     }
     return(View());
 }
        public IActionResult OrganisationEdit(OrganisationEditVM model)
        {
            if (ModelState.IsValid)
            {
                OrganisationM Organisation = _context.GetById(model.Id);


                _context.Edit(Organisation);
                return(RedirectToAction("Details", new { id = model.Id }));
            }
            return(View(model));
        }