Ejemplo n.º 1
0
 public async Task<HttpResponseMessage> PostInsertEKTodayArticleForEK([FromBody]EKToday postParameter)
 {            
     using(UserRepository userRepository = new UserRepository())
     {
         bool result = await userRepository.InsertEKToday(postParameter);
         if(result)
         {
             return WebApiHelper.HttpRMtoJson(null, HttpStatusCode.OK, customStatus.Success);
         }
         else
         {
             return WebApiHelper.HttpRMtoJson(null, HttpStatusCode.OK, customStatus.Fail);
         }
     }
 }