BugzyGeek
BugzyGeek
CC#
Created by ayman23 on 7/7/2023 in #help
❔ API controller implementation inside mvc 5 app
My suggestion will be to move the Login from the controller another class which will return the result. This way the MVC Controller and the API Controller can both call the method of the class to get the work done and return the appropriate response. Although you can call the MVC controller Methods just like any other method in a class, MVC controllers normally returns ActionResult so moving the logic into a class that both controllers share will be the appropriate way.
4 replies
CC#
Created by JJ on 6/7/2023 in #help
❔ [WPF] C# Grammer, find string
are you looking for the index "as" starts from?
41 replies
CC#
Created by JJ on 6/7/2023 in #help
❔ [WPF] C# Grammer, find string
If you want to check if a particular substring is in a string you can use the Contains function.
41 replies