[Solved] BETTER WAY #PHP MVC [closed]

A Controller is the glue between your business logic and the requests made. Although it can contain quite a few functionalities, they should all be specific to the target request in question. A a small description of a controller, you will find similar cases as: Controllers are the glue that binds models, views and other … Read more

[Solved] Building enterprise level applications without frontend frameworks

Of course you can, but frameworks are developed to make the developer journey easier, they gives you utilities that otherwise you would need to develop by yourself. You can develop enterprise application without any framework, but you will need more code and you will need to take care about aspects that a framework already has … Read more

[Solved] How can i assign these “var” results to different variables? [closed]

C# is strongly typed variables must be defined at compile time, so you can not create variables dynamically at runtime. However, you can use a collection to hold your results. Using a list: var result = db.servis.Where(s => …).ToList(); // access first element: var first = result.ElementAt(0); Using an array: var result = db.servis.Where(s => … Read more

[Solved] Send Javascript Vairable To C# MVC controller [closed]

If I understand what you’re trying to do here is to call an endpoint with plain javascript? This will do the job for you: function callYourController(id, propertyName, value) { var xhttp = new XMLHttpRequest(); xhttp.onreadystatechange = function() { if (this.readyState == 4 && this.status == 200) { console.log(this.responseText); } }; xhttp.open(“POST”, “www.google.com?id=” + id + … Read more

[Solved] Update Models in Controller with Linq to Sql [closed]

You could write your own implementation by iterating through properties with reflection (e.g. konut.GetType().GetProperties() and then iterate through all properties and setting them for Db model) or you could use some 3rd party tools to do mapping for you. For example AutoMapper (https://automapper.org/) or ValueInjecter (https://github.com/omuleanu/ValueInjecter). They both do pretty good job, although I think … Read more

[Solved] How to refactor frontend JS to Angular 2 to play nicely with PHP MVC backend? [closed]

Even tho you’re getting downvotes, let me help you to start a BIG journey if you’re willing to really do that. First, if your views are generated on the backend : “The most part of the HTML is rendered in the PHP backend.” According to that sentence, I imagine that you don’t have a REST … Read more

[Solved] How to check PowerShell disable by group policy using C#

There is a limitation called ExecutionPolicy, setting, which can prevent from running scripts from files. From C#, you can create an instance of InitialSessionState with ExecutionPolicy = ByPass and create Powershell with this initial session state. Then try to run your script file with Invoke-Command -FilePath command. solved How to check PowerShell disable by group … Read more

[Solved] How to find just Current time and just day in mvc [closed]

You can get the Day and Time in DateTime object (datestr). Check datestr object to get more information such as month, year, ShortTimeString. DateTime datestr = DateTime.Now; datestr.DayOfWeek; //it shows the day ex: monday,tuesday datestr.ToLongTimeString(); //restult will be time ex: “10:18:19 PM” 6 solved How to find just Current time and just day in mvc … Read more

[Solved] I am scanning barcode from mobile box using usb barcode scanner. But i get just IMEI of Mobile device not get all information of Mobile like Color etc [closed]

I am scanning barcode from mobile box using usb barcode scanner. But i get just IMEI of Mobile device not get all information of Mobile like Color etc [closed] solved I am scanning barcode from mobile box using usb barcode scanner. But i get just IMEI of Mobile device not get all information of Mobile … Read more