Jimmy Bogard at Los Techies says he matches his EditModel with message commands instead of matching EditModel with DomainModel. Can anyone explain this further?
I would suggest that this will be a version of the template that performs the necessary manipulations with the corresponding domain objects based on the provided message. for example, something like
public PromoteEmployeeCommand : ICommand { private readonly PromotionMessage _message; private readonly IEmployeeRepository _repository; public PromoteEmployeeCommand(PromotionMessage message, IEmployeeRepository repository) { _message = message; _repository = repository; } public void Execute() { /* Get the employee, give them a rise etc... */ } }
, (, , , ..).
, , Edit.
Source: https://habr.com/ru/post/1725619/More articles:Codeigniter and download zip files - phpIs it possible to use custom GridView swap (in ASP.NET, preferably 3.5) without using ObjectDataSource? - asp.netПреобразовать число в двоичную строку с полным заполнением? - javaHow to use the infrared port on the back of my netbook to change the channel - c #Get recursive data in Sitecore CMS.NET - sitecoreConvert Windows FILTIME value to .NET DateTime - c #Compile scala classes with debugging information through Maven - debuggingChild control unavailable due to access modifier - access-modifiersAre these two xpath styles logical and equivalent? - .netWhat is the standard sort order for Python version / version numbers? - pythonAll Articles