DTO service library creation
Right click on solution and add new Service Library project.
Add class file for models.
Eg
public class LoginUser
{
public long Id { get; set; }
public string Name { get; set; }
public string Password { get; set; }
public string Status { get; set; }
}
---------------------------------------------------
public class Address
{
public long id { get; set; }
public long? ContactId { get; set; }
public string Door { get; set; }
public string Street { get; set; }
public string Place { get; set; }
public string City { get; set; }
public string Taluk { get; set; }
public string Distict { get; set; }
public string State { get; set; }
public string Country { get; set; }
public string Pin { get; set; }
public string Landmark { get; set; }
}
----------------------------------------------------
public class Contact
{
public long Id { get; set; }
public long? UserId { get; set; }
public string Name { get; set; }
public string MaildId1 { get; set; }
public string MaildId2 { get; set; }
public string Mobile1 { get; set; }
public string Mobile2 { get; set; }
public string Mobile3 { get; set; }
public string Comments { get; set; }
public System.DateTime? CreatedAt { get; set; }
public System.DateTime? ModifiedAt { get; set; }
public List<Address> AddressList { get; set; }
}
-----------------------------------------------------------------------
public class UserContacts
{
public long UserId { get; set; }
public string Name { get; set; }
public List<Contact> ContactList { get; set; }
}
------------------------------------------------------------------------
Comments
Post a Comment