|
@@ -1,10 +1,12 @@
|
1
|
|
-using AutoMapper;
|
|
1
|
+using Abp.Json;
|
|
2
|
+using AutoMapper;
|
2
|
3
|
using Microsoft.AspNetCore.Authorization;
|
3
|
4
|
using Microsoft.AspNetCore.Mvc;
|
4
|
5
|
using Microsoft.Extensions.Options;
|
5
|
6
|
using Microsoft.IdentityModel.Tokens;
|
6
|
7
|
using System;
|
7
|
8
|
using System.IdentityModel.Tokens.Jwt;
|
|
9
|
+using System.Net;
|
8
|
10
|
using System.Security.Claims;
|
9
|
11
|
using System.Text;
|
10
|
12
|
using UnivateProperties_API.Containers.Users;
|
|
@@ -96,7 +98,8 @@ namespace UnivateProperties_API.Controllers.Users
|
96
|
98
|
}
|
97
|
99
|
catch (AppException ex)
|
98
|
100
|
{
|
99
|
|
- return BadRequest(new { messge = ex.Message });
|
|
101
|
+ //return BadRequest(new { message = ex.Message });
|
|
102
|
+ return StatusCode(409, ex);
|
100
|
103
|
}
|
101
|
104
|
}
|
102
|
105
|
|