public Helper.MethodResponse DeleteReaderForWCF(int _readerid) { MethodResponse methodResponse = new MethodResponse(); try { ReaderDB readerdb = new ReaderDB(); methodResponse = readerdb.DeleteReaderForWCF(_readerid); } catch (Exception exc) { CustomException customException = new CustomException() { Exception = exc, ExceptionTime = DateTime.Now, Parameters = _readerid.ToString(), HelpLink = "", User = "", MethodName = "DeleteReaderForWCF" }; //bool IsSaved = customException.SaveException(customException); //if (!IsSaved) //{ // // Mail At //} methodResponse.Object = null; methodResponse.Type = MethodResponse.ResponseType.Error; methodResponse.ResultText = ""; } return methodResponse; }
public Helper.MethodResponse UpdateReaderForWCF(Data.Model.Reader _reader) { MethodResponse methodResponse = new MethodResponse(); try { ReaderDB readerdb = new ReaderDB(); methodResponse = readerdb.UpdateReaderForWCF(_reader); } catch (Exception exc) { string serilazedObject = ""; //_book.Serialize(ref serilazedObject); CustomException customException = new CustomException() { Exception = exc, ExceptionTime = DateTime.Now, Parameters = serilazedObject, HelpLink = "", User = "", MethodName = "UpdateReaderForWCF" }; //bool IsSaved = customException.SaveException(customException); //if (!IsSaved) //{ // // Mail At //} methodResponse.Object = null; methodResponse.Type = MethodResponse.ResponseType.Error; methodResponse.ResultText = ""; } return methodResponse; }