Exemple #1
0
        public IActionResult OrderNow(int id, DateTime TiemSerch, string city)
        {
            var p = aartistRepository.GetProfileArtistByIdAtris(id);
            var a = aartistRepository.GetArtitById(id);

            var user = aartistRepository.GetIdentityUserByUsurName(User.Identity.Name);

            var   client = aartistRepository.GetClient(user.Id);
            Order order  = new Order
            {
                DateTimeEvent = TiemSerch,
                City          = city,
                NameArtist    = p.FullName,
                ArtistType    = (ArtistType)a.ArtistType,
                EventType     = (EventType)a.EventType,
                Price         = a.Price,
                NameClient    = client.FullName,
                PhoneClient   = user.PhoneNumber,
                IdArtist      = id
            };

            return(View(order));
        }