/// <summary> /// This is the method for add constituency. /// </summary> /// <param name="constituencyRequestmodel"></param> /// <returns></returns> public ConstituencyResponseModel AddConstituency(ConstituencyRequestmodel constituencyRequestmodel) { try { if (constituencyRequestmodel != null) { return(constituencyRL.AddConstituency(constituencyRequestmodel)); } else { return(null); } } catch (Exception) { throw; } }
/// <summary> /// It add Constituency to the City in db /// </summary> /// <param name="addConstituency">Constituency Name and City Id</param> /// <returns>Add Constituency Response Model</returns> public AddConstituencyResponseModel AddConstituency(AddConstituencyRequestModel addConstituency) { try { if (addConstituency == null) { return(null); } else { return(_constituencyRepository.AddConstituency(addConstituency)); } } catch (Exception e) { throw new Exception(e.Message); } }