public async Task <IActionResult> Edit(int id, [Bind("RoleId,RoleName")] VolunteerRole volunteerRole)
        {
            if (id != volunteerRole.RoleId)
            {
                return(NotFound());
            }

            if (ModelState.IsValid)
            {
                try
                {
                    _context.Update(volunteerRole);
                    await _context.SaveChangesAsync();
                }
                catch (DbUpdateConcurrencyException)
                {
                    if (!VolunteerRoleExists(volunteerRole.RoleId))
                    {
                        return(NotFound());
                    }
                    else
                    {
                        throw;
                    }
                }
                return(RedirectToAction(nameof(Index)));
            }
            return(View(volunteerRole));
        }
        public async Task integration_volunteer_create_role()
        {
            var role = new VolunteerRole {
                Name        = "Focus Missions Team Member",
                Description = "A team member type from Focus Missions"
            };

            var response = _client.VolunteerRoles.Create(role);

            response.Data.Result.Id.ShouldBeGreaterThan(0);
        }
        public async Task <IActionResult> Create([Bind("RoleId,RoleName")] VolunteerRole volunteerRole)
        {
            if (ModelState.IsValid)
            {
                _context.Add(volunteerRole);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(volunteerRole));
        }