Bit.Api.Controllers.SitesController.Post C# (CSharp) Method

Post() private method

private Post ( [ model, string expand = null ) : Task
model [
expand string
return Task
        public async Task<SiteResponseModel> Post([FromBody]SiteRequestModel model, string[] expand = null)
        {
            var site = model.ToCipher(_userManager.GetUserId(User));
            await _cipherService.SaveAsync(site);

            var response = new SiteResponseModel(site);
            await ExpandAsync(site, response, expand, null);
            return response;
        }