public Text getModel()
        {
            var model = new Text();

            Mapper.CreateMap<TextView, Text>();
            Mapper.Map<TextView, Text>(this, model);

            return model;
        }
 public Text createText(Text model)
 {
     db.texts.Add(model);
     db.SaveChanges();
     return model;
 }
 public TextView(Text model)
 {
     Mapper.CreateMap<Text, TextView>();
     Mapper.Map<Text, TextView>(model, this);
 }