Esempio n. 1
0
 private ActionResult GenerateJson(T_User entity, bool isNew, string msg)
 {
     return(Json(new
     {
         entityName = "User",
         id = entity.user_id,
         fields = new
         {
             user_name = entity.user_name,
             user_status = StatusHelper.GetName <UserStatus>(entity.user_status),
             user_desc = entity.user_desc,
             user_date_subscription = entity.user_date_subscription.ToShortDateString()
         },
         isNew = isNew,
         msg = msg
     }));
 }