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