public ApiUser GetSingleByUserName(string userName = null) { ApiUser apiUser = new ApiUser(); try { apiUser = service.GetSingleByUserName(userName); } catch (Exception ex) { throw ex; } return(apiUser); }