Exemple #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);
 }
Exemple #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));
        }
Exemple #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));
        }
Exemple #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));
        }
        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));
        }
Exemple #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));
        }
Exemple #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));
        }
Exemple #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));
        }
Exemple #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));
        }
Exemple #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));
        }
Exemple #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));
        }
Exemple #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));
        }
Exemple #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));
        }
Exemple #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));
        }
Exemple #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));
        }
Exemple #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));
        }
Exemple #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));
        }
Exemple #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));
        }
Exemple #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));
        }
Exemple #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));
        }
Exemple #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));
        }
Exemple #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));
        }
Exemple #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));
        }
Exemple #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));
        }
Exemple #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));
        }
Exemple #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));
        }
Exemple #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));
        }
Exemple #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));
        }
Exemple #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));
        }