public async Task <IActionResult> PutUsers(int id, ExpenseService.Core.Model.CoreUsers user)
        {
            if (id != user.Id)
            {
                return(BadRequest());
            }
            var resource = new ExpenseService.Core.Model.CoreUsers
            {
                Id          = user.Id,
                Name        = user.Name,
                Email       = user.Email,
                Password    = user.Password,
                Address     = user.Address,
                PhoneNumber = user.PhoneNumber,
                Membership  = user.Membership
            };

            _repo.Changed(resource);

            try
            {
                await _repo.SaveAsync();
            }
            catch (DbUpdateConcurrencyException)
            {
                if (!(await UsersExists(id)))
                {
                    return(NotFound());
                }
                else
                {
                    throw;
                }
            }

            return(NoContent());
        }