Пример #1
0
        public string EditEmailTemplate(FormDataCollection form)
        {
            var rel       = string.Empty;
            var id        = Int32.Parse(form.Get("Id"));
            var subject   = form.Get("Subject");
            var typeEmail = Int32.Parse(form.Get("TypeEmail"));
            var content   = form.Get("Content");

            var entity = new EmailInfo
            {
                Id        = id,
                Content   = content,
                Subject   = subject,
                EmailType = typeEmail,
            };

            EmailRepository.Edit(entity);

            return(rel);
        }