public void initial(Auth auth, Update_Done request, Update_Done_Logic eventdoneLogic, CommonResponse ecr, string[] token, string uri) { if (auth.AuthResult(token, uri)) { ecr.data.results = eventdoneLogic.UpdateDone(request); ecr.meta.code = 200; ecr.meta.message = "OK"; } else { ecr.meta.code = 401; ecr.meta.message = "Unauthorized"; } }
public void initial(Auth auth, Update_Done request, Update_Done_Logic eventdoneLogic, CommonResponse ecr, string[] token, string uri) { if (auth.AuthResult(token, uri)) { if (eventdoneLogic.UpdateDone(request) > 0) { ecr.meta.code = 200; ecr.meta.message = "OK"; } else { ecr.meta.code = 612; ecr.meta.message = "The specified resource does not exist"; } } else { ecr.meta.code = 401; ecr.meta.message = "Unauthorized"; } }
public void initial(Auth auth, Update_Done request, Update_Done_Logic eventdoneLogic, CommonResponse ecr, string[] token, string uri) { if (auth.AuthResult(token, uri)) { if (eventdoneLogic.UpdateDone(request) > 0) { eventdoneLogic.InsertContainerNo(request); ecr.meta.code = 200; ecr.meta.message = "OK"; } else { ecr.meta.code = 612; ecr.meta.message = "The specified resource does not exist"; } } else { ecr.meta.code = 401; ecr.meta.message = "Unauthorized"; } }