public DalControlMethodDocumentation MapToDal(BllControlMethodDocumentation entity) { DalControlMethodDocumentation dalEntity = new DalControlMethodDocumentation { Id = entity.Id, Name = entity.Name, Pressmark = entity.Pressmark, ControlName_id = entity.ControlName != null ? entity.ControlName.Id : (int?)null }; return(dalEntity); }