0

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

Tieson T.
  • 20,774
  • 6
  • 77
  • 92
Wfee
  • 71
  • 1
  • 6

1 Answers1

-1

I don't know your model structure, but;

public PartialViewResult InHouse()
{
CheckoutRoom model = new CheckoutRoom();
return View(model);
}

you can do it with a similar code.