diff --git a/Interfaces/IXTagProvider.cs b/Interfaces/IXTagProvider.cs index d66f293..d1ad233 100644 --- a/Interfaces/IXTagProvider.cs +++ b/Interfaces/IXTagProvider.cs @@ -31,21 +31,21 @@ namespace xTagService.Interfaces /// /// /// - XTagDto ToXTagDto(XTag model); + XTagDto ToDto(XTag model); /// /// Converts a List of Entitiies to List of Dto's ... /// /// /// - IEnumerable ToXTagDtoList(IEnumerable models); + IEnumerable ToDtoList(IEnumerable models); /// /// Converts Query Result of Entities to Dto ... /// /// /// - XQueryResult ToXTagDtoQueryResult(XQueryResult queryResult); + XQueryResult ToDtoQueryResult(XQueryResult queryResult); #endregion // diff --git a/Providers/XTagProvider.cs b/Providers/XTagProvider.cs index 7427645..b08fd2a 100644 --- a/Providers/XTagProvider.cs +++ b/Providers/XTagProvider.cs @@ -52,7 +52,7 @@ namespace xTagService.Providers /// /// /// - public XTagDto ToXTagDto(XTag model) + public XTagDto ToDto(XTag model) { return model.ToDto(); } @@ -62,7 +62,7 @@ namespace xTagService.Providers /// /// /// - public IEnumerable ToXTagDtoList(IEnumerable models) + public IEnumerable ToDtoList(IEnumerable models) { // var result = new List(); @@ -74,7 +74,7 @@ namespace xTagService.Providers foreach (var model in models) { // - var dto = ToXTagDto(model); + var dto = ToDto(model); if (!dto.IsNullOrDefault()) { result.Add(dto); @@ -91,7 +91,7 @@ namespace xTagService.Providers /// /// /// - public XQueryResult ToXTagDtoQueryResult(XQueryResult queryResult) + public XQueryResult ToDtoQueryResult(XQueryResult queryResult) { // var result = new XQueryResult(); @@ -110,7 +110,7 @@ namespace xTagService.Providers // if (!queryResult.Items.IsNull() && queryResult.Items.HasChild()) { - result.Items = ToXTagDtoList(queryResult.Items); + result.Items = ToDtoList(queryResult.Items); } } @@ -150,7 +150,7 @@ namespace xTagService.Providers } // - result = ToXTagDto(entitiy); + result = ToDto(entitiy); } // @@ -182,7 +182,7 @@ namespace xTagService.Providers } // - result = ToXTagDto(entity); + result = ToDto(entity); if (result.IsNullOrDefault()) { XException.NotFound.Throw(); @@ -232,7 +232,7 @@ namespace xTagService.Providers if (!entities.IsNull() && entities.HasChild()) { // - result = ToXTagDtoList(entities) + result = ToDtoList(entities) .ToList(); } @@ -254,7 +254,7 @@ namespace xTagService.Providers var entitiy = await Repository.FindOneAsync(whereClause); if (!entitiy.IsNullOrDefault()) { - result = ToXTagDto(entitiy); + result = ToDto(entitiy); } // @@ -276,7 +276,7 @@ namespace xTagService.Providers if (!entities.IsNull() || entities.HasChild()) { // - result = ToXTagDtoList(entities) + result = ToDtoList(entities) .ToList(); } @@ -298,7 +298,7 @@ namespace xTagService.Providers var queryResult = await Repository.QueryAsync(query); if (!queryResult.IsNull()) { - result = ToXTagDtoQueryResult(queryResult); + result = ToDtoQueryResult(queryResult); } // @@ -326,7 +326,7 @@ namespace xTagService.Providers ); if (!queryResult.IsNull()) { - result = ToXTagDtoQueryResult(queryResult); + result = ToDtoQueryResult(queryResult); } // @@ -365,7 +365,7 @@ namespace xTagService.Providers XTagDto result = null; if (!entity.IsNullOrDefault()) { - result = ToXTagDto(entity); + result = ToDto(entity); } // @@ -424,7 +424,7 @@ namespace xTagService.Providers entity = await Repository.UpdateAsync(id, entity); if (!entity.IsNullOrDefault()) { - result = ToXTagDto(entity); + result = ToDto(entity); } //