public GetProgramByNameResponse GetProgramByName(GetProgramByNameRequest request) { try { GetProgramByNameResponse programResponse = new GetProgramByNameResponse(); DTO.Program result; IProgramRepository repo = Factory.GetRepository(request, RepositoryType.Program); result = repo.FindByName(request.ProgramName) as DTO.Program; programResponse.Program = result; return(programResponse != null ? programResponse : new GetProgramByNameResponse()); } catch (Exception ex) { throw new Exception("DD:DataProgramManager:GetProgramByName()::" + ex.Message, ex.InnerException); } }