You've got two different Act
classes - one in the Ent
namespace, and one in ERP.Actions.Act
.
Your action
variable is of type ERP.Actions.Act
, but ctrl.GetAct
is returning an Ent.Act
reference.
It's not clear what these classes are meant to be, but you may well want to try to collapse them to one class - or at least rename one of them for clarity.