public async Task <DefChargeBasisRes> GetDefChargeBasis(string ticket) { DefChargeBasisRes defChargeBasisRes = new DefChargeBasisRes(); defChargeBasisRes = await serviceProxy.PostData(_configuration.GetValue <string>("ServiceMaster:GetDefChargeBasis"), null, typeof(DefChargeBasisRes), ticket); return(defChargeBasisRes); }
public DefChargeBasisRes GetDefChargeBasis() { var response = new DefChargeBasisRes(); try { response.DefChargeBasis = _MasterRepository.GetChargeBasis(); response.ResponseStatus.Status = "Success"; } catch (Exception ex) { response.ResponseStatus.Status = "Failure"; response.ResponseStatus.ErrorMessage = "An Error Occurs :- " + ex.Message; } return(response); }