Exemplo n.º 1
0
        public async Task <DefPersonTypeRes> GetPersonType(string ticket)
        {
            DefPersonTypeRes defPersonTypeRes = new DefPersonTypeRes();

            defPersonTypeRes = await serviceProxy.PostData(_configuration.GetValue <string>("ServiceMaster:GetPersonType"), null, typeof(DefPersonTypeRes), ticket);

            return(defPersonTypeRes);
        }
Exemplo n.º 2
0
        public DefPersonTypeRes GetPersonType()
        {
            var response = new DefPersonTypeRes();

            try
            {
                response.DefPersonType         = _MasterRepository.GetPersonType();
                response.ResponseStatus.Status = "Success";
            }
            catch (Exception ex)
            {
                response.ResponseStatus.Status       = "Failure";
                response.ResponseStatus.ErrorMessage = "An Error Occurs :- " + ex.Message;
            }
            return(response);
        }