public TextAttributes AddOne(TextAttributeModel model) { var attr = _providerAttr.AddOne(_converter.ConvertTo(model)); _providerAttr.Commit(); return(attr); }
public ActionResult Index() { var attr = _attrService.GetAll().FirstOrDefault(); var model = _converterAttr.ConvertTo(attr) ?? new TextAttributeModel() { WatermarkFont = "Bell MT", WatermarkFontSize = 60, WatermarkText = "*****@*****.**", SignatureFont = "Edwardian Script ITC", SignatureFontSize = 43, SignatureText = "© Alexander Serebryakov", StampFont = "Bell MT", StampFontSize = 45, StampText = "www.askanio.ru", Alpha = 80 }; return(View(model)); }