public static AttritionProfileMap ToDomainModel(AttritionProfileModel model) { return new AttritionProfileMap { Id = model.Id, AttritionId = model.AttritionId, DateOfLeaving = model.DateOfLeaving }; }
public static AttritionProfileMap ToDomainModel(AttritionProfileModel model,int dealerId) { return new AttritionProfileMap { Id = model.Id, AttritionId = model.AttritionId, DateOfLeaving = model.DateOfLeaving, DealerManpower =new DealerManpower{Id = dealerId} }; }