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
738 Views Asked by ASP.Net Developer At
2
There are 2 best solutions below
Related Questions in ASP.NET-MVC
- Can MVC.NET prevent SQL-injection at razor or controller level?
- Getting and passing MVC Model data to AngularJS controller
- Access property of an object of type [Model] in JQuery
- Entity Framework Code First with Fluent API Concurrency `DbUpdateConcurrencyException` Not Raising
- Bundling and minification issue in MVC
- ASP-MVC Code-first migrations checkbox not active
- Why does Azure CloudConfigurationManager.GetSetting return null
- Dynamic roles list in CustomAuthorize ASP MVC
- Jquery: Change contents of <select> tag dynamically
- Why web API return 404 when deploy to IIS
- MVC route URL not containing parameter
- Invalidate user credentials when password changes
- MVC : Insert data to two tables
- MVC - Only allow users to edit their own data
- Submit Button on Razor View doesn't call Action Result - MVC
Related Questions in ASP.NET-MVC-4
- Jquery: Change contents of <select> tag dynamically
- redirect to actionResult method from an api
- Open another view through controller from jQuery?
- ASP MVC 5 Html.EditorFor not working / Unable to access/use Default Editor Templates
- Having error in updating my record in database my method as follows
- Is it possible to access an additional custom model property from viewdata.modelmetadata.properties?
- Which plugin is used to show the data in front end of socrata
- Set focus on button that triggered page reload
- jQuery: How to traverse / Iterate over a list of object
- Switching CSS Just for that view?
- Protractor, login to asp,net MVC login page, wait for default page then , redirect to angular page and do tests....how?
- Ajax.beginForm() cannot get post value
- Get desired html element's attribute value and set to hidden field before binding in Asp.Net MVC
- Get Value From Dynamically Populated Hidden Field
- Asp.net MVC Routelink null controller parameter
Related Questions in DATA-ACCESS-LAYER
- How do I cache something within a request in EWL?
- VB.NET Using in Using
- SettingsProvider class - should it be in DAL or BLL project?
- How to know the invoker of my classes and methods in java?
- DAL Repository pattern joins using dapper
- Does Entity Framework or Telerik Data Access support DATA migrations? (NOT schema migrations)
- WCF App_Code folder dosen't recognized
- How to efficiently handle slow CLOB reading from Oracle in .Net?
- How to organize a project into three tiers?
- Update the datatable without using DataAdapter.Fill 2 times
- How do I used Count(*) with DAL2?
- Is it possible to use commandType = text to call a stored procedure using System.Data.OracleClient
- What is DTO equivalent term for objects returned from DAL?
- Recommended considerations to design **Data Access Layer**
- Advice on replacing Enterprise Library Data Access Block by Entity Framework
Related Questions in BUSINESS-LAYER
- How to use Simple injector for repository in business layer
- Are the relations of this domain model based uml class diagram correct and in which class should required methods be placed?
- business logic in stored procedure
- Remember state of Object in sub project
- Design guidance on Business Layer Paging
- Should An Application Service Be Injected Into A Domain Service
- Storing object in memory for using it in Business Layer
- Interaction within Business Logic Layer in 3-layered Architecture?
- Putting logic in entity class which extends datalayer entity
- SignalR and ASP.NET MVC: Integration in business layer
- Where to put insert,update, delete methods in asp.net mvc
- How to transform multiple "old" C# business objects layer to be exposed in WCF
- return Queryable<T> or List<T> in a Repository<T>
- Use Server.MapPath in Business 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 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)