0

Question for suitable solution

Moe 6 месяцев назад обновлен Alexander Shvets 6 месяцев назад 0

Hi,


I am looking for a good design pattern for this scenario where I am using these technologies .NET c#, EF code first, MS SQL server and Angular, I have a long questionnaire to collect numerical data where I will use these inputs in many equations, then I will reuse the output of these equations in other equations. Moreover, I will divide this questionnaire into multiple forms. My question is, which design pattern is suitable for this case? I suggested the following solution, I will use Dtos to divide the questionnaire into multiple forms. For equations and calculations, I will create a specific folder as “Services” in API solution, then I will create a certain class for these equations, and I will divide the equations into multiple methods inside this class. Then, I can call this service inside the controller, is this a good approach?

Thanks in advance,


B.Regards,

//M

Сервис поддержки клиентов работает на платформе UserEcho