コード例 #1
0
ファイル: BasketController.cs プロジェクト: acomar/EstiloFC
        public ViewResult OrderDone(int idOrder)
        {
            ViewBag.UserName = GetLoggedUser.FullName();
            var order = orderService.GetOrder(idOrder, base.IdLoggedUser);

            return(View("OrderDone", "_LayoutOrderDone", order));
        }
コード例 #2
0
        public override Task <EmptyMessage> DeleteLoggedUser(GetLoggedUser request, ServerCallContext context)
        {
            var loggedUser = _sessionRepository.GetLoggedUsers().Find(u => u.Email.Equals(request.Email));

            _sessionRepository.DeleteLoggedUser(loggedUser);
            _logSenderService.SendMessages("user " + request.Email + " closed session");
            return(Task.FromResult(new EmptyMessage {
            }));
        }