public UpdateCommandResult(CommandActionBase command, bool isSuccessful, TModel updatedItem, IEnumerable <UpdateInfo> updateInfos) { CommandAction = command; IsSuccessful = isSuccessful; UpdatedItem = updatedItem; UpdateInfos = updateInfos; }
public ReadCommandResult(CommandActionBase command, bool isSuccessful, IEnumerable <TModel> filteredItems, FilterCriteria criteria) { CommandAction = command; IsSuccessful = isSuccessful; Criteria = criteria; FilteredItems = filteredItems; }
public ReadDetailsCommandResult(CommandActionBase command, bool isSuccessful, TModel item, FilterCriteria criteria) { CommandAction = command; IsSuccessful = isSuccessful; Criteria = criteria; Item = item; }
public CreateCommandResult(CommandActionBase command, bool isSuccessful, TModel createdItem) { CommandAction = command; IsSuccessful = isSuccessful; CreatedItem = createdItem; }
public DeleteCommandResult(CommandActionBase command, bool isSuccessful, IEnumerable <TModel> deletedItems) { CommandAction = command; IsSuccessful = isSuccessful; DeletedItems = deletedItems; }
public DeleteCommandResult(CommandActionBase command, bool isSuccessful, TModel deletedItem) : this(command, isSuccessful, new [] { deletedItem }) { //intentionally blank }