コード例 #1
0
        public Response <int> Add(RssEntity input)
        {
            Response <RssEntity> validation = _queryRssAggregate.Get(input.UserId, input.AliasName);

            if (validation.ResponseData != null)
            {
                return(Response <int> .Create(0, CDO.Enums.Response.ResponseType.AlreadyExist));
            }
            return(_commandRssAggregate.Add(input));
        }
コード例 #2
0
 public Response <RssEntity> Get(int id)
 {
     return(_queryRssAggregate.Get(id));
 }