public PersonDTO GetPersonByPersonID(int? id) { if (id == 0) { return null; } var person = uOW.PersonRepo.Get().Where(s => s.Id == id).FirstOrDefault(); if (person != null) { return Mapper.Map<PersonDTO>(person); } return null; }