public ActionResult GetFilterSellerPublishedNotes(string SellerId = null) { if (string.IsNullOrEmpty(SellerId)) { SellerId = null; } PublishedNotesViewModel Model = new PublishedNotesViewModel(); List <GetPublishedNotesData_Result> getData = db.GetPublishedNotesData(SellerId).ToList(); Model.getPublishedNotesData_Results = getData; return(PartialView("_PublishedNotes", Model)); }