/// <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;
 }
Example #2
0
        /// <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);
        }
Example #3
0
 public Task <ResponseBase> Deactivate(DeactivationRequest request)
 {
     return(ConnectionManager.SendRequestAndWaitResponse <ResponseBase>(request));
 }
 public Task<ResponseBase> Deactivate(DeactivationRequest request)
 {
     return ConnectionManager.SendRequestAndWaitResponse<ResponseBase>(request);
 }