private TApplication UpdateApplicationDetail(TApplicationRequest applicationRequest, string applicationSid, string friendlyName) { ApplicationOptions options = Mapper.Map <ApplicationOptions>(applicationRequest); Application application = TwilioClient.UpdateApplication(applicationSid, friendlyName, options); if (application.RestException != null) { throw new Exception(application.RestException.Message); } return(Mapper.Map <TApplication>(application)); }