public static MM.AccountLog Map(AccountLog entity)
 {
     return(new MM.AccountLog
     {
         Id = entity.Id,
         Account = Mapper.Map(entity.Account),
         AccountId = entity.AccountId,
         DateTime = entity.DateTime,
         Logined = entity.Logined
     });
 }
        internal bool Add(AccountLog accountLog)
        {
            if (accountLog == null)
            {
                return(false);
            }

            var MMAcountLog = Mapper.Map(accountLog);

            DB.AccountLogs.Add(MMAcountLog);

            DB.SaveChanges();

            return(true);
        }