Example #1
0
 public string _UpdateUserProfit(string jsonData)
 {
     // String s = (new System.IO.StreamReader(HttpContext.Current.Request.InputStream)).ReadToEnd();
     UserProfitBll ob = new UserProfitBll();
     List<UserProfit> we = JsonConvert.DeserializeObject(jsonData, typeof(List<UserProfit>)) as List<UserProfit>;
     string Flag = "success";
     foreach (UserProfit wd in we)
     {
         bool SuccessFlag = ob.Update(wd);
         if (!SuccessFlag)
         {
             Flag = "error";
         }
     }
     return Flag;
 }