private void getAllManagersHandler(JObject msgObj, string message) { JsonResponse response; int requestId = (int)msgObj["id"]; int storeId = (int)msgObj["data"]; try { String data_ans = JsonHandler.SerializeObject(user.GetAllManagers(storeId)); response = JsonResponse.generateDataSuccess(requestId, data_ans); } catch (WorkShopDbException dbExc) { response = JsonResponse.generateDataFailure(requestId, "DB is down please try again in few minutes\n" + dbExc.Message); } catch (Exception e) { response = JsonResponse.generateDataFailure(requestId, e.Message); } sendMyselfAMessage(JsonHandler.SerializeObject(response)); }