I have some
problem
with mapping models . So I have a entity model ...public class User
{
public string UserId { get; set;}
public ICollection<Group> Groups {get; set;}
}
...and DTO model ...public class UserInfo
{
public string UserId { g...
I trying to update nested collection (Cities) of Country entity....Just simple enitities and dto's:...// EF Models
public class Country
{
public int Id { get; set; }
public string Name { get; set; }
public virtual ICollection<City> Cities { ge...
I have get method in web api:...public async Task<IHttpActionResult> Get()
{
var categories = await _context.Categories.Include(x => x.SubCategories)
.Where(c => c.IsActive)
.ToListAsy...