Hi everyone,
I've worked with ASP.NET before and in ASP.NET Web API, I could do something like this
public Product Add(Product item)
{
if (item == null)
{
throw new ArgumentNullException("item");
}
item.Id = _nextId++;
products.Add(item);
return item;
}
I mean I can create a model class (Product) and put an instance of it in parameter
How can I do this in Phalcon Micro? Recently, with Micro, I can only put primitive type as parameter.
Thank you very much