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