よく使われるメソッド
よく使われるメソッド
よく使われるメソッド
よく使われるメソッド
public async Task <EnumProjectAccessRight> GetUserAccessRightProject(int userId, int projectId) { Result <string> result = await _projectGateway.GetUserAccessRightProject(userId, projectId); if (result.Content == null) { return(EnumProjectAccessRight.None); } EnumProjectAccessRight projectAccessRight = (EnumProjectAccessRight)Enum.Parse(typeof(EnumProjectAccessRight), result.Content); return(projectAccessRight); }