public BusinessImageDTO Create(BusinessImageDTO modelDTO) { if (modelDTO != null) { return(BusinessImageAssembler.ToDTO(BusinessImagesRepo.Create(BusinessImageAssembler.ToEntity(modelDTO)))); } return(null); }
public BusinessImageDTO Get(int id) { BusinessImageDTO oBusinessImageDTO = null; if (id > 0) { BusinessImage oBusinessImage = BusinessImagesRepo.Get(id); if (oBusinessImage != null) { oBusinessImageDTO = BusinessImageAssembler.ToDTO(oBusinessImage); } } return(oBusinessImageDTO); }