Skip to content

Commit 138be79

Browse files
committed
Removed IsFunction extension method as that is set on OdcmModel, updated IsAction.
1 parent e25ea91 commit 138be79

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/GraphODataTemplateWriter/Extensions/OdcmModelExtensions.cs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -177,13 +177,14 @@ public static IEnumerable<OdcmMethod> Actions(this OdcmClass odcmClass)
177177

178178
public static bool IsAction(this OdcmMethod method)
179179
{
180-
return method.Verbs == OdcmAllowedVerbs.Post;
180+
//return method.Verbs == OdcmAllowedVerbs.Post;
181+
return !method.IsFunction;
181182
}
182183

183-
public static bool IsFunction(this OdcmMethod method)
184-
{
185-
return method.IsComposable; //TODO:REVIEW
186-
}
184+
//public static bool IsFunction(this OdcmMethod method)
185+
//{
186+
// return method.IsFunction; //TODO:REVIEW
187+
//}
187188

188189
public static string GetNamespace(this OdcmModel model)
189190
{

0 commit comments

Comments
 (0)