/// <summary>
        ///
        /// </summary>
        /// <param name="app"></param>
        /// <param name="function"></param>
        /// <param name="actor"></param>
        /// <param name="itemId"></param>
        /// <param name="message"></param>
        /// <param name="args"></param>
        public void Log(Format format, LogType type, int actor, int objectId, object[] args)
        {
            SystemLog _Log = new SystemLog();

            _Log.ItemId         = Convert.ToString(objectId);
            _Log.Actor          = Convert.ToString(actor);
            _Log.CreateDatetime = DateTime.Now;
            _Log.Module         = format.Function.Module.Name;
            _Log.Function       = format.Function.Name;
            _Log.Body           = LoggerUtils.Format(format, args);
            _Log.OpType         = Enum.GetName(typeof(LogType), type);

            using (ChooseDishesEntities entities = new ChooseDishesEntities()) {
                entities.SystemLog.Add(_Log);
                entities.SaveChanges();
            }
        }