示例#1
0
 public async Task<IActionResult> Create([Bind("Idrouting,Priority,RingingTime,FkContact,FkSite,Active,FkRoutingGroup,HuntBusy,FkAnnouncement,FkIvr,FkMailbox,VoicemailMain")] Routing routing)
 {
     if (ModelState.IsValid)
     {
         _context.Add(routing);
         await _context.SaveChangesAsync();
         return RedirectToAction(nameof(Index));
     }
     return View(routing);
 }
示例#2
0
        public async Task <IActionResult> Create([Bind("Idtemplate,Name,Description,FkCustomer")] Template template)
        {
            if (ModelState.IsValid)
            {
                _context.Add(template);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(template));
        }
示例#3
0
        public async Task <IActionResult> Create([Bind("Idreport,Name")] Report report)
        {
            if (ModelState.IsValid)
            {
                _context.Add(report);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(report));
        }
示例#4
0
        public async Task <IActionResult> Create([Bind("Idlcr,Name,Description")] Lcr lcr)
        {
            if (ModelState.IsValid)
            {
                _context.Add(lcr);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(lcr));
        }
示例#5
0
        public async Task <IActionResult> Create([Bind("Idannouncement,Name,Description,Audiomessage,Audioname,Audiosize,Repeattimes,FkCustomer,FkContact,InProgress")] Announcement announcement)
        {
            if (ModelState.IsValid)
            {
                _context.Add(announcement);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(announcement));
        }
        public async Task <IActionResult> Create([Bind("IdcarrierCodeException,Priority,Status,FkCarrier,FkCode,FkExceptionLcr")] CarrierCodeException carrierCodeException)
        {
            if (ModelState.IsValid)
            {
                _context.Add(carrierCodeException);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(carrierCodeException));
        }
示例#7
0
        public async Task <IActionResult> Create([Bind("Idperiod,TimeFrom,TimeTo,Frequency,Day,Status,FkTemplate")] Period period)
        {
            if (ModelState.IsValid)
            {
                _context.Add(period);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(period));
        }
示例#8
0
        public async Task <IActionResult> Create([Bind("Idcode,DialledNumber,Description")] Code code)
        {
            if (ModelState.IsValid)
            {
                _context.Add(code);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(code));
        }
示例#9
0
        public async Task <IActionResult> Create([Bind("IdreportConfiguration,Name,Description,FkUserProfile,FkCustomer")] Reportconfiguration reportconfiguration)
        {
            if (ModelState.IsValid)
            {
                _context.Add(reportconfiguration);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(reportconfiguration));
        }
示例#10
0
        public async Task <IActionResult> Create([Bind("Idnumber,Number1,Description,FkCustomer,FkGroup,ActiveDate,CustomerDescription,CeaseDate")] Number number)
        {
            if (ModelState.IsValid)
            {
                _context.Add(number);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(number));
        }
示例#11
0
        public async Task <IActionResult> Create([Bind("Idfeature,Name,Description,Code")] Feature feature)
        {
            if (ModelState.IsValid)
            {
                _context.Add(feature);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(feature));
        }
示例#12
0
        public async Task <IActionResult> Create([Bind("IdnumberFormat,NumberFormat,Description,Name")] Numberformat numberformat)
        {
            if (ModelState.IsValid)
            {
                _context.Add(numberformat);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(numberformat));
        }
示例#13
0
        public async Task <IActionResult> Create([Bind("IddayDetails,Day,TimeFrom,TimeTo,Status,FkPeriod")] Daydetails daydetails)
        {
            if (ModelState.IsValid)
            {
                _context.Add(daydetails);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(daydetails));
        }
示例#14
0
        public async Task <IActionResult> Create([Bind("Idivraction,Digit,FkIvr,FkIvrDest,FkContactDest,FkAnnouncementDest,FkMailboxDest,VoicemailMain")] Ivraction ivraction)
        {
            if (ModelState.IsValid)
            {
                _context.Add(ivraction);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(ivraction));
        }
示例#15
0
        public async Task <IActionResult> Create([Bind("Idcontact,Name,Description,PhoneNumber,FkCustomer,FkSite")] Contact contact)
        {
            if (ModelState.IsValid)
            {
                _context.Add(contact);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(contact));
        }
示例#16
0
        public async Task <IActionResult> Create([Bind("Idgroup,Name,Description,FkCustomer")] Numbergroup numbergroup)
        {
            if (ModelState.IsValid)
            {
                _context.Add(numbergroup);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(numbergroup));
        }
示例#17
0
        public async Task <IActionResult> Create([Bind("Iduser,Idcustomer,Name,LastName,Active")] UserProfiles userProfiles)
        {
            if (ModelState.IsValid)
            {
                _context.Add(userProfiles);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(userProfiles));
        }
示例#18
0
        public async Task <IActionResult> Create([Bind("Idcustomer,Name,Description,RoutingNumber,DefaultBillingNumber,NonGeo,FkExceptionLcr,BlockAnonymous,Customercol")] Customer customer)
        {
            if (ModelState.IsValid)
            {
                _context.Add(customer);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(customer));
        }
示例#19
0
        public async Task <IActionResult> Create([Bind("Idsite,Name,Description,Domain,FkNumberFormat,FkCustomer")] Site site)
        {
            if (ModelState.IsValid)
            {
                _context.Add(site);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(site));
        }
示例#20
0
        public async Task <IActionResult> Create([Bind("Idcarrier,Name,Description,Domain,RoutingNumber,BillingNumber,Preference")] Carrier carrier)
        {
            if (ModelState.IsValid)
            {
                _context.Add(carrier);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(carrier));
        }
示例#21
0
        public async Task <IActionResult> Create([Bind("IdroutingGroup,Name,Description,Active,IsUserGenerated,FkCustomer,Forking")] Routinggroup routinggroup)
        {
            if (ModelState.IsValid)
            {
                _context.Add(routinggroup);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(routinggroup));
        }
示例#22
0
        public async Task <IActionResult> Create([Bind("Idivr,Name,Description,Audiomessage,Audioname,Audiosize,Repeattimes,Timeout,FkCustomer")] Ivr ivr)
        {
            if (ModelState.IsValid)
            {
                _context.Add(ivr);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(ivr));
        }
示例#23
0
        public async Task <IActionResult> Create([Bind("Idmailbox,Pin,Name,Email,SendEmail,DeleteOpt,Attachment,Audiomessage,Audioname,Audiosize,FkNumber,FkCustomer,Fax")] Mailbox mailbox)
        {
            if (ModelState.IsValid)
            {
                _context.Add(mailbox);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(mailbox));
        }
示例#24
0
        public async Task <IActionResult> Create([Bind("Idbarring,Code,NormalisedCode,Description,Status,FkCustomer")] Barring barring)
        {
            if (ModelState.IsValid)
            {
                _context.Add(barring);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(barring));
        }
示例#25
0
        public async Task <IActionResult> Create([Bind("IdnumberTemplate,FkNumber,FkTemplate,Priority,Active,FkRoutingGroup")] NumberTemplate numberTemplate)
        {
            if (ModelState.IsValid)
            {
                _context.Add(numberTemplate);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(numberTemplate));
        }
示例#26
0
        public async Task <IActionResult> Create([Bind("Idlog,Action,Timestamp,Table,Attribute,NewValue,IdModified,FkUser")] Log log)
        {
            if (ModelState.IsValid)
            {
                _context.Add(log);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(log));
        }
示例#27
0
        public async Task <IActionResult> Create([Bind("IdexceptionNumber,Number,Description")] Exceptionnumber exceptionnumber)
        {
            if (ModelState.IsValid)
            {
                _context.Add(exceptionnumber);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(exceptionnumber));
        }
示例#28
0
        public async Task <IActionResult> Create([Bind("Id,Msgnum,Dir,Context,Macrocontext,Callerid,Origtime,Duration,Flag,Mailboxuser,Mailboxcontext,MsgId,Recording")] Voicemessages voicemessages)
        {
            if (ModelState.IsValid)
            {
                _context.Add(voicemessages);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(voicemessages));
        }
示例#29
0
        public async Task <IActionResult> Create([Bind("IdfeatureCustomer,DateFrom,DateTo,Quantity,FkFeature,FkCustomer")] FeatureCustomer featureCustomer)
        {
            if (ModelState.IsValid)
            {
                _context.Add(featureCustomer);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(featureCustomer));
        }
示例#30
0
        public async Task <IActionResult> Create([Bind("IdreportconfigurationNumber,FkReportConfiguration,FkNumber")] ReportconfigurationNumber reportconfigurationNumber)
        {
            if (ModelState.IsValid)
            {
                _context.Add(reportconfigurationNumber);
                await _context.SaveChangesAsync();

                return(RedirectToAction(nameof(Index)));
            }
            return(View(reportconfigurationNumber));
        }