This commit is contained in:
@@ -5,7 +5,7 @@ using System.Linq;
|
||||
using System.Collections.Generic;
|
||||
|
||||
|
||||
namespace AyaNova.Api.ControllerHelpers
|
||||
namespace AyaNova.Biz
|
||||
{
|
||||
|
||||
|
||||
@@ -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 });
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user