Im using MVC and Im having the following html code to get data from mssql.
In the following code it calls the DebitAndCreditNotesService and the function GetCheckoutRoomInfo
@Html.Partial("_InHouse", new DebitAndCreditNotesService().GetCheckoutRoomInfo())
But how can i modify the above code to call a controller and function it got. Suppose i got a controller and method for eg- CreditNoteController and the method is Inhouse
public class CreditNotesController : BaseController
{
public PartialViewResult InHouse()
{
}
}
How can i do this? Im still a beginner