Пример #1
0
        public HttpResponseMessage DeleteApp(int id)
        {
            ResultJson json = new ResultJson()
            {
                Code = 200, Message = "Ok"
            };

            return(MyJson.ObjectToJson(json));
        }
Пример #2
0
        public HttpResponseMessage UpdateApp([FromBody] App value)
        {
            ResultJson json = new ResultJson()
            {
                Code = 200, Message = "Ok"
            };

            return(MyJson.ObjectToJson(json));
        }
Пример #3
0
        public HttpResponseMessage Get(int id)
        {
            var app = GetApps().Where(m => m.Id.Equals(id)).FirstOrDefault();

            return(MyJson.ObjectToJson(app));
        }
Пример #4
0
 public HttpResponseMessage Get()
 {
     return(MyJson.ObjectToJson(GetApps()));
 }