AccountManagement.Accounts.Controllers.FollowersController.IndexPOST C# (CSharp) Метод

IndexPOST() приватный Метод

private IndexPOST ( string accountId, Follower follower ) : IHttpActionResult
accountId string
follower Follower
Результат IHttpActionResult
        public IHttpActionResult IndexPOST(string accountId, Follower follower)
        {
            // accountId will be taken from querystring - it is a simple type
            // follower will be taken from request body - it is a complex type

            var evnt = new BeganFollowing
            {
                AccountId = accountId,
                FollowerId = follower.AccountId
            };
            EventPersister.PersistEvent(evnt);
            return RedirectToRoute("Account Followers", new { accountId = accountId });
        }
    }