I want to ask where to put Insert, update delete methods using stored procedure. as i added class library for Dataaccess and business logic class.. and referenced this class library in my mvc 4 project. Now i want to know where to put insert , update ,delete methods eitherin mvc project model or in class library BL class
Where to put insert,update, delete methods in asp.net mvc
739 Views Asked by ASP.Net Developer At
2
There are 2 best solutions below
Related Questions in ASP.NET-MVC
- I have a problem outputing the roles on the page ListRoles.cshtml
- Dropdown list showing SQLServer2005SQLBrowserUser$DONSERVER instead of Active Directory group name in ASP.NET MVC C#
- Hosting ASP.NET MVC application on IIS web server using Windows 2019 server
- How to display only department fields associated with a selected department in student automation system?
- How to send select input data for form submission?
- Multi level project reference using dll
- How to upload file to Onedrive using ASP.NET MVC?
- ASP.NET MVC web app looping between fields only on some devices
- Is there any automatic job to load AD-groups?
- How to restrict admin js files to download
- Download PDF in ASP.NET MVC application
- How to add bootstrap theme/example into ASP.NET MVC 5?
- Web API works with Windows authentication enabled when consumed via Swagger but throws an unauthorized issue when accessed through web app
- ASP.Net Core 7.0 Web App (Model-View-Controller) ErrorViewModel OnGet OnPost do not get called or executed
- OAuth 2.0 keep getting Authorization has been denied for this request
Related Questions in ASP.NET-MVC-4
- SignalR client is not connecting to the hub after changing the client app's cookie name
- How I Can send question and answer by without reload web page
- Load SQL database saved MS word document to Syncfusion Document Editor
- @Html.ValidationSummary(true) throw CSP error
- Rotativa PDF export taking significantly longer on Windows Server 2016 after recent update
- Two ASP.NET MVC applications overwrite same session cookie
- List is not binding in controller, when pass it through hidden field from view in ASP.NET MVC
- Calling AJAX methods in parallel increases server response time?
- OpenCover Profiler Error : ProfilerCommunication::RequestInformation(...) => Communication (Chat channel - TrackAssembly) with host has failed
- Nested child sub menus not getting generated in Asp.Net Core MVC project
- How to show Documents on viewer when htmlmode: true in Configuration.yml file in Group Docs
- ASP.NET MVC role is trying to use SQL Server Express not the SQL Server
- Error HRESULT E_FAIL has been returned from a call to a COM component in Asp.net MVC
- How I can get total number from Database by SignalR
- Application Insights telemetry shows 'NA' from MVC 4 application behind private load balancer
Related Questions in DATA-ACCESS-LAYER
- Error code stating "The ObjectContext might be in an inconsistent state."
- Hibernate: Transactions, Locks and DAO architecture in concurrent environment
- How to use auth policies to exclude some properties on a model when rendering JSON?
- Still using dataset?
- How can I separate data layer from Next.js API routes?
- React API Internal Endpoint Call is paragraphs long... Better way to do it?
- NestJS - what are the best practices to consider return types of custom queries from the DAL?
- Creating a MongoDB UpdateOne generic type/property update function
- How to add data of one table to another table using Id and display it using .net api
- what are the consequences if I set the id parameter(in DA layer) to final?
- Is the service layer in my .NET Core/Blazor architecture redundant?
- How to split below action method code into separate DAL & BLL in asp.net mvc?
- DI excpetion for service in api with Data Access Layer
- Could my C# method that saves an entity into SQL database return Id of the inserted row?
- How to assign SQL @Action flag in ASP.NET MVC DAL class using single stored procedure?
Related Questions in BUSINESS-LAYER
- Updating properties in a class that contains an Enum
- Manage GUI and logic interaction in Python
- Interaction within Business Logic Layer in 3-layered Architecture?
- Software Architecture: Does Service Layer and Business Layer has their own Model
- ASP.NET MVC Core - ViewModel in Business Layer and implement data annotation
- How to direct exceptions from Business layer to UI layer
- C# Unique Property Validation in Business Layer
- What should be implemented in data layer and what in business layer?
- Document/action/command permission/access control, rbac, abac
- Storing object in memory for using it in Business Layer
- Are the relations of this domain model based uml class diagram correct and in which class should required methods be placed?
- How to transform multiple "old" C# business objects layer to be exposed in WCF
- Design pattern for mapping database in Data Access Layer [C#]
- ASP.NET MVC UnitOfWork and Business Services / Layer
- Simple data manipulation: in Entity Model or Business layer?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You should put the Insert, update , delete etc methods in the Business layer and in Controller, just call the methods from Business layer. The data access should never interact directly with the Controller or the presentation layer. (These are the good programming ethics since they provide security to the application and data)