|
@ -12,6 +12,9 @@ namespace Pingchuan.BeijingSafeguard.App.Controllers |
|
|
[HttpPost] |
|
|
[HttpPost] |
|
|
public JsonResult Add(Point point) |
|
|
public JsonResult Add(Point point) |
|
|
{ |
|
|
{ |
|
|
|
|
|
User user = GetLoginUser(); |
|
|
|
|
|
point.UserId = user.Id; |
|
|
|
|
|
|
|
|
int id = PointBLL.Add(point); |
|
|
int id = PointBLL.Add(point); |
|
|
return Json(id); |
|
|
return Json(id); |
|
|
} |
|
|
} |
|
|