public ActionResult AddService(int invoiceId, int serviceTypeId, decimal?rate) { decimal initialRate = 0; if (rate.HasValue) { initialRate = rate.Value; } var invoice = InvoiceServices.AddService(invoiceId, serviceTypeId, initialRate); return(PartialView("_ServiceList", invoice.ServiceList)); }