public string deleteDetail(int id) { try { logger.Info("Control Flow : deleteDetail web Method Started"); string access = AuthHeader.authenticate(); string result = string.Empty; if (AuthHeader.authFlag == 1) { logger.Info("Authenticated successfully : " + access); serviceInterface deleteSI = new serviceInterface(); result = deleteSI.delete(id); } else { result = access; logger.Info("Authenticated Failed : " + access); } logger.Info("Control Flow : deleteDetail web Method Stopped"); return result; } catch (Exception ex) { logger.Error("Control Flow : updateDetail web Method Stopped"); ThrowSoapException soapExp = new ThrowSoapException(); soapExp.convertToSoapException(ex); return string.Empty; } }
public string insertDetail( personEntity p) { try { logger.Info("Control Flow : insertDetail web Method started"); string access = AuthHeader.authenticate(); string result = string.Empty; if (AuthHeader.authFlag == 1) { logger.Info("Authenticated successfully : " + access); serviceInterface insertDetailSI = new serviceInterface(); result = insertDetailSI.insertDetail(p); } else { result = access; logger.Fatal("Authentication failed : " + access); } logger.Info("Control Flow : insertDetail web Method stopped"); return result; } catch (Exception ex) { logger.Error("Control Flow : insertDetail web Method stopped"); ThrowSoapException soapExp = new ThrowSoapException(); soapExp.convertToSoapException(ex); return string.Empty; } }
public personEntity[] viewDetail() { try { logger.Info("Control Flow : viewDetail web Method Started"); string access = AuthHeader.authenticate(); personEntity[] result = null; if (AuthHeader.authFlag == 1) { logger.Info("Authenticated successfully : " + access); serviceInterface viewDetailSI = new serviceInterface(); result = viewDetailSI.viewDetail(); } else { logger.Fatal("Authentication failed : " + access); } logger.Info("Control Flow : viewDetail web Method Stopped"); return result; } catch (Exception ex) { logger.Error("Control Flow : viewDetail web Method Stopped"); ThrowSoapException soapExp = new ThrowSoapException(); soapExp.convertToSoapException(ex); return null; } }