using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Net.Http; using System.Web.Http; namespace ChatRoomServer.Www.Areas.Api.Controllers { using System.Net.Http.Headers; using System.Web.Http.Cors; using System.Web.Http.Results; using ChatRoomServer.Db; [RoutePrefix("api/users")] public class UsersController : ApiController { [EnableCors("http://12306.liebao.cn,http://test.fishlee.net", "*", "*", "")] [AllowAnonymous] [Route("report")] public bool ReportAbuse(string username, long msgid, string msgun) { if (msgid <= 0 || username.IsNullOrEmpty() || msgun.IsNullOrEmpty()) return false; var db = new ChatDb(); return true; } } }