protected void btnSubmit_DailyService_Click(object sender, EventArgs e)
 {
     if (txtDailyServiceCity.Text.Trim() != "")
     {
         if (txtDailyServiceCityId.Text.Trim() == "")
         {
             rfvDailyServiceCity.IsValid = false;
             return;
         }
     }
     else
     {
         txtDailyServiceCityId.Text = "";
     }
     if (txtDailyServiceCityId.Text.Trim() != "")
     {
         int result;
         TransporterDailyService obj = new TransporterDailyService();
         obj.TranpsorterId = _transporter.TransporterId;
         obj.CityId = Convert.ToInt32(txtDailyServiceCityId.Text.Trim());
         result = TransporterDailyServiceMethod.AddTransporterDailyService(obj);
         if (result == 2601)
         {
             ValidatePopup("This city is already added");
             return;
         }
         if (result >= 1)
         {
             FillGrids();
             FillDropDowns();
             ValidatePopup("Daily Service added");
             ClearInputs(Page.Controls);
         }
         else
         {
             ValidatePopup("Please try again");
             return;
         }
     }
     else
     {
         ValidatePopup("Please select City");
         return;
     }
 }
 public static int AddTransporterDailyService(TransporterDailyService obj)
 {
     TMSDataLibrary.TransporterDaliyService tranDailyService = new TMSDataLibrary.TransporterDaliyService();
     int result = tranDailyService.AddTransporterDaliyService(obj.TranpsorterId, obj.CityId);
     return result;
 }