改太多
This commit is contained in:
1 parent
be5352efed
commit
1cb2a7a35e
48 files changed
+17970
-485
No files matched your search
@@ -7,6 +7,7 @@ using System.Web.Http;
|
||||
using PagedList;
|
||||
using Newtonsoft.Json;
|
||||
using System.Collections;
|
||||
using System.Windows.Interop;
|
||||
|
||||
|
||||
// api/adminUser
|
||||
@@ -62,7 +63,15 @@ public class adminUserController : ApiController
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
[HttpPost]
|
||||
[Route("api/adminUser/GetMyDefaultPage")]
|
||||
public IHttpActionResult GetMyDefaultPage([FromBody] Model.ViewModel.admin q)
|
||||
{
|
||||
var item = _db.default_page.Where(o => o.u_id == q.u_id).FirstOrDefault();
|
||||
if (item == null) throw new HttpResponseException(HttpStatusCode.NotFound);
|
||||
|
||||
return Ok(new {result="ok",data=item});
|
||||
}
|
||||
|
||||
[HttpGet]
|
||||
[Route("api/adminUser/count")]
|
||||
|
||||
Reference in new issue
Block a user