Example #1
0
 /// <summary>
 /// This is the method for delete constituency.
 /// </summary>
 /// <param name="ConstituencyId"></param>
 /// <returns></returns>
 public string DeleteConstituency(int ConstituencyId)
 {
     try
     {
         if (ConstituencyId != 0)
         {
             return(constituencyRL.DeleteConstituency(ConstituencyId));
         }
         else
         {
             return(null);
         }
     }
     catch (Exception)
     {
         throw;
     }
 }
 /// <summary>
 /// It Delete the Constituency
 /// </summary>
 /// <param name="ConstituencyId">Constituency Id</param>
 /// <returns>If Delete Successfully, It return true or else false</returns>
 public bool DeleteConstituency(int ConstituencyId)
 {
     try
     {
         if (ConstituencyId <= 0)
         {
             return(false);
         }
         else
         {
             return(_constituencyRepository.DeleteConstituency(ConstituencyId));
         }
     }
     catch (Exception e)
     {
         throw new Exception(e.Message);
     }
 }