/// <summary> /// </summary> public ResponseBase Deactivate(ISession session, DeactivationRequest request) { var response = request.CreateResponse(); using (var uow = UnitOfWorkFactory.Create()) { uow.Attach(session.User); session.User.Delete(); uow.Commit(); } return response; }
/// <summary> /// </summary> public ResponseBase Deactivate(ISession session, DeactivationRequest request) { var response = request.CreateResponse(); using (var uow = UnitOfWorkFactory.Create()) { uow.Attach(session.User); session.User.Delete(); uow.Commit(); } return(response); }
public Task <ResponseBase> Deactivate(DeactivationRequest request) { return(ConnectionManager.SendRequestAndWaitResponse <ResponseBase>(request)); }
public Task<ResponseBase> Deactivate(DeactivationRequest request) { return ConnectionManager.SendRequestAndWaitResponse<ResponseBase>(request); }