public async Task <ActionResult> New(Guid productId, NewPolicyModel model) { Guid userId = HttpContext.User.GetUserId(); Guid policyId = await _policyService.CreatePolicy(userId, productId, model.Name); return(RedirectToAction("Edit", new [] { policyId = policyId })); }
public async Task CreatePolicy(Guid productId, NewPolicyModel model) { await _policyService.CreatePolicy(CallingContext.UserId, productId, model.Name); }