public async STT.Task <IActionResult> Update([FromRoute] Guid id, [FromBody] SAVM.Permission permission, CancellationToken ct) { permission.ModifiedBy = User.GetId(); var updatedPermission = await _permissionService.UpdateAsync(id, permission, ct); return(Ok(updatedPermission)); }
public async STT.Task <IActionResult> Create([FromBody] SAVM.Permission permission, CancellationToken ct) { permission.CreatedBy = User.GetId(); var createdPermission = await _permissionService.CreateAsync(permission, ct); return(CreatedAtAction(nameof(this.Get), new { id = createdPermission.Id }, createdPermission)); }