This commit is contained in:
2019-03-28 21:47:48 +00:00
parent f0806f9c73
commit aad30d0da0
4 changed files with 12 additions and 15 deletions

View File

@@ -5,7 +5,7 @@ using System.Linq;
using System.Collections.Generic;
namespace AyaNova.Api.ControllerHelpers
namespace AyaNova.Biz
{

View File

@@ -58,7 +58,7 @@ namespace AyaNova.Biz
}
public void AddError(ValidationErrorType errorType, string propertyName = null, string errorMessage = null)
public void AddError(ApiErrorCode errorType, string propertyName = null, string errorMessage = null)
{
_errors.Add(new ValidationError() { ErrorType = errorType, Message = errorMessage, Target = propertyName });

View File

@@ -6,11 +6,11 @@ namespace AyaNova.Biz
Now_api_code_2201_RequiredPropertyEmpty = 1,
Now_api_code_2202_LengthExceeded = 2,
Now_api_code_2206_NotUnique = 3,
StartDateMustComeBeforeEndDate = 4,
InvalidValue = 5,
ReferentialIntegrity = 6,
InvalidOperation = 7,
NotChangeable=8,
Now_api_code_2207_StartDateMustComeBeforeEndDate = 4,
Now_api_code_2203_InvalidValue = 5,
Now_api_code_2208_ReferentialIntegrity = 6,
Now_api_code_2030_InvalidOperation = 7,
Now_api_code_2209_NotChangeable=8,
Now_api_code_2205_RequiredPropertyMissing = 9,
Now_api_code_2204_CustomRequiredPropertyEmpty = 10