/// <summary> /// 将entity转换为vo /// </summary> public NoticeExtendedVo ToExtendedVo(NoticeEntity entity) { NoticeExtendedVo vo = new NoticeExtendedVo(); CopyToVo(vo, entity); if (!string.IsNullOrEmpty(entity.Category)) { vo.Category = metaNoticeCategoryProvider.ToMetadata(entity.Category); } return(vo); }
public MetaNoticeCategorySelectedItemResponse SelectedItem([FromBody] MetaNoticeCategorySelectedItemRequest request) { MetaNoticeCategorySelectedItemResponse response = new MetaNoticeCategorySelectedItemResponse(); if (request == null) { response.Status = 1; return(response); } if (string.IsNullOrEmpty(request.Name)) { response.Status = 1; return(response); } response.Item = metaNoticeCategoryProvider.ToMetadata(request.Name); response.Status = 1; return(response); }