public Office CreateObject(Office office) { office.Errors = new Dictionary <String, String>(); if (!isValid(_validator.VCreateObject(office, this))) { office = _repository.CreateObject(office); } return(office); }
public Office CreateObject(Office office) { office.Errors = new Dictionary <String, String>(); if (!isValid(_validator.VCreateObject(office, this))) { office = _repository.CreateObject(office); } return(office); }