static fabric method for creating entity from dto