public ActionResult AddEditStationLink(long?userId, long?stationId) { //status = true; var viewModel = new AddEditStationLinkViewModel(); if (userId.HasValue) { viewModel.UserId = userId.Value; if (stationId.HasValue) { viewModel.StationId = stationId; // status = false; var drStationUser = CRCDataAccess.GetStationUser(stationId.Value, userId.Value); drStationUser.MapTo(viewModel); } } return(PartialView(viewModel)); }