public async Task<ActionResult> OrganizationRegistration(OrganizationModel model) {
     ApplicationDbContext db = HttpContext.GetOwinContext().Get<ApplicationDbContext>();
     if(ModelState.IsValid) {
         model.usersAplication = UserManager.FindById(User.Identity.GetUserId());
         if(model.usersAplication != null) {
             model.Id = Guid.NewGuid().ToString();
             db.Organization.Add(model);
             UserManager.FindById(User.Identity.GetUserId()).FinishedRegistration = true;
             await db.SaveChangesAsync();
         }
     }
     return RedirectToAction("Index", "Manage");
 }
        public async Task<ActionResult> OrganizationEdit(OrganizationModel model) {
            if(!ModelState.IsValid) {
                return View();
            }

            var editModel = db.Organization.Where(o => o.Id.Equals(model.Id)).First();
            editModel.Id = model.Id;
            editModel.MaticniBroj = model.MaticniBroj;
            editModel.OrganizationName = model.OrganizationName;
            editModel.PIB = model.PIB;
            editModel.usersAplication = model.usersAplication;

            await db.SaveChangesAsync();
            return RedirectToAction("OrganizationIndex");
        }