yayasoft / ytour

ytour
2 stars 0 forks source link

BreezeApi Helper to get data #248

Closed samat89 closed 9 years ago

samat89 commented 9 years ago

In BreezeApi controller there are a lot of additional functions and classes. I think there should be some class, which should be responsive for logic. Really logic should be written in helper object, because now in Breeze api controller there are approximately 6000 lines of code.

suhrab commented 9 years ago

You can mark BreezeApiController class as partial And create separate c# files. For example for Cashier logic create file BreezeApiController.Cashier.cs BreezeApiController.Provider.cs etc..

public partial class BreezeApiController{/your methods here/}

samat89 commented 9 years ago

Changeset 3015 Made it for Queues module Modules should be placed in folder Controllers/Partials and called properly e.g. BreezeApiController.Queues.cs

samat89 commented 9 years ago

http://jira-logisense.cc.kg/browse/YT-178

novice3030 commented 9 years ago

@suhrab making BreezeApiController partial is a good way to go about it. I also started taking out stuff from the main class and put it on separated files I also updated the rest of the team about doing so