hello, happy to contact you
i should developping a fuel product price management web application using asp.net mvc and entity framework.
the purpose of this application is determine the price and margin according to certain factors.
the price value is calculted according to decade, auther user inputs, and these factors
I have to store and keep tracking the results of prices in the database by decades(each10 days in month).
for this
1. should i create sql script for storing prices and margin values in database view and keep tracking the price results, and import this database view by entity framwork for desplaying directly in razor view?
2. or should i implemente the prices calculations in business layer and create view models for storing the result, and desplaying the prices and margin result in razor view, and create database view for keep tracking the prices and margin result by decades?
3. or implemente the price calculations and use entity framework to update result in database table, all in business layer?
any advice?