Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
AI OnAI Off
Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
I would just assign it one by one or you can setup some lib (AutoMapper for example) that will do it automatically.
Hi Valdis lljuconoks,
Thanks for reply, can you provide any referance code for better understanding?
Thanks,
Kartheek
Hi Guys,
Icreated one page type with two properties like,
namespace EPIFind.Models.Pages
{
[ContentType(DisplayName = "Home", GUID = "b48b974b-15f1-4fc5-8885-594ac465d932", Description = "")]
public class Home : PageData
{
[CultureSpecific]
[Display(
Name = "Heading",
Description = "",
GroupName = SystemTabNames.Content,
Order = 1)]
public virtual string Heading { get; set; }
[CultureSpecific]
[Display(
Name = "Count",
Description = "",
GroupName = SystemTabNames.Content,
Order = 2)]
public virtual int Count { get; set; }
}
i called this properties in .cshtml and i gave the data from user interface to properties, now my requirement is how to pass this pagetype properties data to normal class properties, this is my class
namespace EPIFind.Models
{
public class MyClass
{
public string Heading{ get; set; }
public int count{ get; set; }
}
}
please guys can any one help me out of this.
Thanks,
Ramkee.G