public static IcbcodeBlock Get(string block_name, string domain_name) { IcbcodeBlock item = null; using (BlockRepository block_repository = new BlockRepository()) { item = IcbcodeBlock.Convert(block_repository.GetByName(block_name, domain_name), 1, 1); } return(item); }