AssetManager.Controllers.ChargesController.GetResponse C# (CSharp) Method

GetResponse() public method

public GetResponse ( Charge charge, Asset asset, bool creation ) : Object
charge AssetManager.Model.Charge
asset AssetManager.Model.Asset
creation bool
return Object
        public Object GetResponse(Charge charge, Asset asset, bool creation)
        {
            return new
            {
                dto = charge,
                message = creation ? "Charge added":"Charge updated"
            };
        }