CalendarSystem.Common.CommandProcessor.ProcessDeleteCommand C# (CSharp) Метод

ProcessDeleteCommand() приватный Метод

private ProcessDeleteCommand ( Command command ) : string
command Command
Результат string
        private string ProcessDeleteCommand(Command command)
        {
            int deletedEventsCount = this.eventsManager.DeleteEventsByTitle(command.Arguments[0]);

            if (deletedEventsCount == 0)
            {
                return NoEventsFoundMessage;
            }
            else
            {
                return deletedEventsCount + DeletedEventsMessage;
            }
        }