public IActionResult FID(ApprovalRequest request) { FID iniciativa = new FID(request.Status, request.Name); if ("Removed" == request.ResolutionType) { iniciativa.Removed(); } if ("Request_Changes" == request.ResolutionType) { iniciativa.RequestChanges(); } if ("Board" == request.ResolutionType) { iniciativa.Board(); } if ("Terminate" == request.ResolutionType) { iniciativa.Terminate(); } if ("Approve" == request.ResolutionType) { iniciativa.Approve(); } if ("Cancel" == request.ResolutionType) { iniciativa.Cancel(); } if ("Publish" == request.ResolutionType) { iniciativa.Publish(); } if ("Reject" == request.ResolutionType) { iniciativa.Reject(); } return(Ok(iniciativa)); }