Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Add]Init Dot Net Project #1

Merged
merged 1 commit into from
Feb 13, 2019
Merged

[Add]Init Dot Net Project #1

merged 1 commit into from
Feb 13, 2019

Conversation

dattx1
Copy link
Contributor

@dattx1 dattx1 commented Feb 12, 2019

[DotNet]Create Base Project

  • [DotNet][Base Project]Create Base Exception
  • [DotNet][Base Project]Create Base Exception
  • [DotNet][Base Project]Create Base Service
  • [DotNet][Base Project]Create Base Json Converter
  • [DotNet][Base Project]Create Base Json Converter
  • [DotNet][Base Project]Create Base Configration

Ticket: 221487

@@ -0,0 +1,20 @@
using Newtonsoft.Json;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Vì class UizaData sử dụng dynamic Data rồi nên mình remove class UizaList này luôn cũng được đó a

{
if (Data.IsJArray())
return JsonConvert.DeserializeObject<List<ErrorData>>(JsonConvert.SerializeObject(Data));
return new List<ErrorData>();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

case khi Data có 1 giá trị mà không phải Array thì hiện đang return list empty đó a.
var listErrors = new List();
listErrors.Add(JsonConvert.DeserializeObject(JsonConvert.SerializeObject(Data)));
return listErrors;

@dattx1 dattx1 merged commit 6ca676a into uizaio:master Feb 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants