Exemplo n.º 1
0
 private bool NeedDeleteStringEmail(StringWeb stringEmail, IEnumerable <EmailData> advEmails)
 {
     return(!advEmails.Any(
                sw =>
                sw.Value == stringEmail.WebValue &&
                sw.Description == stringEmail.Description &&
                sw.OrderBy == stringEmail.OrderBy));
 }
Exemplo n.º 2
0
        public StringWeb SetStringWeb(StringWeb stringWeb, bool isActual, DbTransaction dbTran)
        {
            SetStringWeb(
                dbTran: dbTran,
                stringId: stringWeb.StringId,
                webId: stringWeb.WebId,
                webTypeId: stringWeb.WebTypeId,
                webResponse: stringWeb.WebResponse,
                webValue: stringWeb.WebValue,
                description: stringWeb.Description,
                orderBy: stringWeb.OrderBy,
                isActual: isActual);

            return(stringWeb);
        }
Exemplo n.º 3
0
        public StringWeb Create(int stringId, Web web, int orderBy)
        {
            var stringWeb = new StringWeb
            {
                WebId       = web.Id,
                StringId    = stringId,
                WebTypeId   = web.WebTypeId,
                WebResponse = web.WebResponse,
                WebValue    = web.WebValue,
                Description = web.Description,
                OrderBy     = orderBy
            };

            return(stringWeb);
        }
Exemplo n.º 4
0
 private void DeleteStringEmail(StringWeb stringEmail, DbTransaction dbTran)
 {
     _repository.SetStringWeb(stringEmail, isActual: false, dbTran);
     _context.Entry(stringEmail).Reload();
 }