fix #1530 for Error in Module templates
The Get public Models.[Module] Get(int id) method in the [Module]Controller has an incorrect IF statement which in turn returns nothing and logs an error
This commit is contained in:
		| @ -45,7 +45,7 @@ namespace [Owner].[Module].Controllers | ||||
|         public Models.[Module] Get(int id) | ||||
|         { | ||||
|             Models.[Module] [Module] = _[Module]Repository.Get[Module](id); | ||||
|             if ([Module] != null && [Module].ModuleId != AuthEntityId(EntityNames.Module)) | ||||
|             if ([Module] != null && [Module].ModuleId == AuthEntityId(EntityNames.Module)) | ||||
|             { | ||||
|                 return [Module]; | ||||
|             } | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Leigh
					Leigh